Skip to content

Commit 3f9caef

Browse files
committed
Remove workaround
1 parent ecefb57 commit 3f9caef

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/conftest.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import base64
3-
import os
43
import time
54
from collections.abc import Iterable
65
from pathlib import Path
@@ -336,24 +335,6 @@ def mock_jwks_fetch(json_web_keyset: JWK):
336335
return patch("jwt.PyJWKClient.fetch_data", mock)
337336

338337

339-
# Prevent pytest from catching exceptions when debugging in vscode so that break on
340-
# exception works correctly (see: https://github.com/pytest-dev/pytest/issues/7409)
341-
if os.getenv("PYTEST_RAISE", "0") == "1":
342-
343-
@pytest.hookimpl(tryfirst=True)
344-
def pytest_exception_interact(call: pytest.CallInfo[Any]):
345-
if call.excinfo is not None:
346-
raise call.excinfo.value
347-
else:
348-
raise RuntimeError(
349-
f"{call} has no exception data, an unknown error has occurred"
350-
)
351-
352-
@pytest.hookimpl(tryfirst=True)
353-
def pytest_internalerror(excinfo: pytest.ExceptionInfo[Any]):
354-
raise excinfo.value
355-
356-
357338
@pytest.fixture(scope="module")
358339
def mock_numtracker_server() -> Iterable[responses.RequestsMock]:
359340
query_working = {

0 commit comments

Comments
 (0)