diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 600ada44..d45cae1d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -16,7 +16,6 @@ from pathlib import Path import pytest from coverage import env -from coverage.exceptions import _StopEverything from coverage.files import set_relative_directory # Pytest will rewrite assertions in test modules, but not elsewhere. @@ -106,14 +105,6 @@ def pytest_sessionfinish(): if pth_file.exists(): pth_file.unlink() -@pytest.hookimpl(hookwrapper=True) -def pytest_runtest_call(item): - """Run once for each test.""" - # Convert _StopEverything into skipped tests. - outcome = yield - if outcome.excinfo and issubclass(outcome.excinfo[0], _StopEverything): # pragma: only jython - pytest.skip(f"Skipping {item.nodeid} for _StopEverything: {outcome.excinfo[1]}") - def possible_pth_dirs(): """Produce a sequence of directories for trying to write .pth files.""" |