summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-13 19:00:51 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-11-14 07:44:57 -0500
commit342e7da2941ae5291f1a94b6ad66ce489f6985fe (patch)
tree47dc5f4db2d314c4e0c8051e705222ae76899431 /tests/conftest.py
parentb8eeb82bcc7350aade99844e8730e69120e9bed0 (diff)
downloadpython-coveragepy-git-342e7da2941ae5291f1a94b6ad66ce489f6985fe.tar.gz
docs: document the exceptions
... and make some of them private.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 16c2c162..6ef42fc1 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -15,7 +15,7 @@ import warnings
import pytest
from coverage import env
-from coverage.exceptions import StopEverything
+from coverage.exceptions import _StopEverything
# Pytest will rewrite assertions in test modules, but not elsewhere.
@@ -96,10 +96,10 @@ def pytest_runtest_call(item):
"""Run once for each test."""
write_test_name(">")
- # Convert StopEverything into skipped tests.
+ # 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]}")
+ if outcome.excinfo and issubclass(outcome.excinfo[0], _StopEverything): # pragma: only jython
+ pytest.skip(f"Skipping {item.nodeid} for _StopEverything: {outcome.excinfo[1]}")
write_test_name("<")