diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-13 19:00:51 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-14 07:44:57 -0500 |
commit | 342e7da2941ae5291f1a94b6ad66ce489f6985fe (patch) | |
tree | 47dc5f4db2d314c4e0c8051e705222ae76899431 /tests/test_execfile.py | |
parent | b8eeb82bcc7350aade99844e8730e69120e9bed0 (diff) | |
download | python-coveragepy-git-342e7da2941ae5291f1a94b6ad66ce489f6985fe.tar.gz |
docs: document the exceptions
... and make some of them private.
Diffstat (limited to 'tests/test_execfile.py')
-rw-r--r-- | tests/test_execfile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_execfile.py b/tests/test_execfile.py index d211eba9..9c8b9233 100644 --- a/tests/test_execfile.py +++ b/tests/test_execfile.py @@ -15,7 +15,7 @@ import sys import pytest from coverage import env -from coverage.exceptions import NoCode, NoSource, ExceptionDuringRun +from coverage.exceptions import NoCode, NoSource, _ExceptionDuringRun from coverage.execfile import run_python_file, run_python_module from coverage.files import python_reported_file @@ -185,9 +185,9 @@ class RunFileTest(CoverageTest): raise RuntimeError('Error Outside') """) - with pytest.raises(ExceptionDuringRun) as exc_info: + with pytest.raises(_ExceptionDuringRun) as exc_info: run_python_file(["excepthook_throw.py"]) - # The ExceptionDuringRun exception has the RuntimeError as its argument. + # The _ExceptionDuringRun exception has the RuntimeError as its argument. assert exc_info.value.args[1].args[0] == "Error Outside" stderr = self.stderr() assert "in excepthook\n" in stderr |