We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41dac39 commit 200cabbCopy full SHA for 200cabb
1 file changed
tests/engine/test_runners.py
@@ -22,9 +22,13 @@
22
23
24
@pytest.fixture
25
-def runner():
26
- """Construct and return a `Runner`."""
27
- runner = get_manager().create_runner(poll_interval=0.5)
+def runner(manager):
+ """Construct and return a ``Runner``.
+
28
+ This fixture depends on ``manager`` so that the manager teardown resets the global profile state after the test,
29
+ clearing any shared runner state before later tests run.
30
+ """
31
+ runner = manager.create_runner(poll_interval=0.5)
32
yield runner
33
runner.close()
34
0 commit comments