What triggers a worker to call teardown_class? #961
vitaly-krugl
started this conversation in
General
Replies: 1 comment
-
I think I figured it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a new experimental pytest-xdist scheduler plugin. I need some guidance regarding which specific condition(s) trigger workers to call cleanup functions such as
teardown_class
.For example, my test classes have the
teardown_class(cls)
classmethod. How does the worker determine whenteardown_class
should be called for a specific test class? In other words, which specific condition(s) need to be met in order forteardown_class
to be called?I tried to follow the relevant code in pytest and pytest-xdist, but don't yet understand either sufficiently to answer this question myself.
Beta Was this translation helpful? Give feedback.
All reactions