We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2b1d5b + 09b2c95 commit cbcb3a3Copy full SHA for cbcb3a3
testing/test_doctest.py
@@ -223,7 +223,11 @@ def test_doctest_unexpected_exception(self, pytester: Pytester):
223
"Traceback (most recent call last):",
224
' File "*/doctest.py", line *, in __run',
225
" *",
226
- *((" *^^^^*",) if sys.version_info >= (3, 11) else ()),
+ *(
227
+ (" *^^^^*",)
228
+ if (3, 11, 0, "beta", 4) > sys.version_info >= (3, 11)
229
+ else ()
230
+ ),
231
' File "<doctest test_doctest_unexpected_exception.txt[1]>", line 1, in <module>',
232
"ZeroDivisionError: division by zero",
233
"*/test_doctest_unexpected_exception.txt:2: UnexpectedException",
testing/test_main.py
@@ -47,7 +47,7 @@ def pytest_internalerror(excrepr, excinfo):
47
48
end_lines = (
49
result.stdout.lines[-4:]
50
- if sys.version_info >= (3, 11)
51
else result.stdout.lines[-3:]
52
)
53
@@ -57,7 +57,7 @@ def pytest_internalerror(excrepr, excinfo):
57
'INTERNALERROR> raise SystemExit("boom")',
58
*(
59
("INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^",)
60
61
else ()
62
),
63
"INTERNALERROR> SystemExit: boom",
@@ -68,7 +68,7 @@ def pytest_internalerror(excrepr, excinfo):
68
'INTERNALERROR> raise ValueError("boom")',
69
70
71
72
73
74
"INTERNALERROR> ValueError: boom",
0 commit comments