Skip to content

Commit d9e42a5

Browse files
committed
Remove accidentally duplicated code in conftest.py
1 parent 2a82712 commit d9e42a5

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

tests/conftest.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
import os
2-
from typing import Any
3-
4-
import pytest
5-
6-
# Prevent pytest from catching exceptions when debugging in vscode so that break on
7-
# exception works correctly (see: https://github.com/pytest-dev/pytest/issues/7409)
8-
if os.getenv("PYTEST_RAISE", "0") == "1":
9-
10-
@pytest.hookimpl(tryfirst=True)
11-
def pytest_exception_interact(call: pytest.CallInfo[Any]):
12-
if call.excinfo is not None:
13-
raise call.excinfo.value
14-
else:
15-
raise RuntimeError(
16-
f"{call} has no exception data, an unknown error has occurred"
17-
)
18-
19-
@pytest.hookimpl(tryfirst=True)
20-
def pytest_internalerror(excinfo: pytest.ExceptionInfo[Any]):
21-
raise excinfo.value
22-
23-
241
import os
252
import unittest.mock as mock
263
from typing import Any

0 commit comments

Comments
 (0)