Skip to content

Commit 7f4745c

Browse files
committed
pragma no cover on pytest exception handling (used in debugging)
1 parent a380873 commit 7f4745c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pydra/conftest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ def pytest_generate_tests(metafunc):
4343

4444
# For debugging in IDE's don't catch raised exceptions and let the IDE
4545
# break at it
46-
if os.getenv("_PYTEST_RAISE", "0") != "0":
46+
if os.getenv("_PYTEST_RAISE", "0") != "0": # pragma: no cover
4747

48-
@pytest.hookimpl(tryfirst=True)
49-
def pytest_exception_interact(call):
50-
raise call.excinfo.value
48+
@pytest.hookimpl(tryfirst=True) # pragma: no cover
49+
def pytest_exception_interact(call): # pragma: no cover
50+
raise call.excinfo.value # pragma: no cover
5151

52-
@pytest.hookimpl(tryfirst=True)
53-
def pytest_internalerror(excinfo):
54-
raise excinfo.value
52+
@pytest.hookimpl(tryfirst=True) # pragma: no cover
53+
def pytest_internalerror(excinfo): # pragma: no cover
54+
raise excinfo.value # pragma: no cover
5555

5656

5757
# Example VSCode launch configuration for debugging unittests

0 commit comments

Comments
 (0)