Skip to content

Commit cbcb3a3

Browse files
authored
Merge pull request #10132 from hroncok/python3.11.0b4
2 parents c2b1d5b + 09b2c95 commit cbcb3a3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

testing/test_doctest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,11 @@ def test_doctest_unexpected_exception(self, pytester: Pytester):
223223
"Traceback (most recent call last):",
224224
' File "*/doctest.py", line *, in __run',
225225
" *",
226-
*((" *^^^^*",) if sys.version_info >= (3, 11) else ()),
226+
*(
227+
(" *^^^^*",)
228+
if (3, 11, 0, "beta", 4) > sys.version_info >= (3, 11)
229+
else ()
230+
),
227231
' File "<doctest test_doctest_unexpected_exception.txt[1]>", line 1, in <module>',
228232
"ZeroDivisionError: division by zero",
229233
"*/test_doctest_unexpected_exception.txt:2: UnexpectedException",

testing/test_main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def pytest_internalerror(excrepr, excinfo):
4747

4848
end_lines = (
4949
result.stdout.lines[-4:]
50-
if sys.version_info >= (3, 11)
50+
if (3, 11, 0, "beta", 4) > sys.version_info >= (3, 11)
5151
else result.stdout.lines[-3:]
5252
)
5353

@@ -57,7 +57,7 @@ def pytest_internalerror(excrepr, excinfo):
5757
'INTERNALERROR> raise SystemExit("boom")',
5858
*(
5959
("INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^",)
60-
if sys.version_info >= (3, 11)
60+
if (3, 11, 0, "beta", 4) > sys.version_info >= (3, 11)
6161
else ()
6262
),
6363
"INTERNALERROR> SystemExit: boom",
@@ -68,7 +68,7 @@ def pytest_internalerror(excrepr, excinfo):
6868
'INTERNALERROR> raise ValueError("boom")',
6969
*(
7070
("INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^",)
71-
if sys.version_info >= (3, 11)
71+
if (3, 11, 0, "beta", 4) > sys.version_info >= (3, 11)
7272
else ()
7373
),
7474
"INTERNALERROR> ValueError: boom",

0 commit comments

Comments
 (0)