diff --git a/README.md b/README.md index 7d017e1..3b4f697 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A pytest plug-in for easy integration of PyStack in your test suite. -It can be used to automatically dump the stack trace of a hanging test in your suite. +It can be used to automatically dump the stack trace of a hanging test in your suite (with exception to test using `pytester` fixture). See [PyStack](https://github.com/bloomberg/pystack) for further information about the tool. diff --git a/src/pytest_pystack/plugin.py b/src/pytest_pystack/plugin.py index 16a1cd0..563d1e8 100644 --- a/src/pytest_pystack/plugin.py +++ b/src/pytest_pystack/plugin.py @@ -62,7 +62,7 @@ def pytest_addoption(parser) -> None: @pytest.hookimpl def pytest_runtest_makereport(item, call): - if call.when in {"setup", "teardown"} and item.config._pystack_queue: + if call.when in {"setup", "teardown"} and item.config._pystack_queue and "pytester" not in item.fixturenames: item.config._pystack_queue.put(item.name)