Skip to content

Commit 7c0cc4e

Browse files
committed
Refresh remaining canonical test contracts and retire verified markers
Align list helpers, specialization collection, and syntax expectations with pinned CPython 3.15. Preserve surviving doctest guards and retire only unconditional expected failures proven across all three CI platforms. Assisted-by: OpenAI Codex:model version unavailable
1 parent e2f58c8 commit 7c0cc4e

13 files changed

Lines changed: 897 additions & 112 deletions

‎Lib/test/list_tests.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from functools import cmp_to_key
77

88
from test import seq_tests
9-
from test.support import ALWAYS_EQ, NEVER_EQ, run_with_limited_c_stack
9+
from test.support import ALWAYS_EQ, NEVER_EQ, skip_if_huge_c_stack
1010
from test.support import skip_emscripten_stack_overflow, skip_wasi_stack_overflow
1111

1212

@@ -60,7 +60,7 @@ def test_repr(self):
6060
self.assertEqual(str(a2), "[0, 1, 2, [...], 3]")
6161
self.assertEqual(repr(a2), "[0, 1, 2, [...], 3]")
6262

63-
@run_with_limited_c_stack(200_000)
63+
@skip_if_huge_c_stack(200_000)
6464
@skip_wasi_stack_overflow()
6565
@skip_emscripten_stack_overflow()
6666
def test_repr_deep(self):

‎Lib/test/test_builtin.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,6 @@ def four_freevars():
11711171
three_freevars.__globals__,
11721172
closure=my_closure)
11731173

1174-
@unittest.expectedFailure # TODO: RUSTPYTHON; SyntaxError: invalid decimal literal
11751174
def test_exec_filter_syntax_warnings_by_module(self):
11761175
filename = support.findfile('test_import/data/syntax_warnings.py')
11771176
with open(filename, 'rb') as f:

‎Lib/test/test_cmd_line.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,6 @@ def test_cpu_count_default(self):
12661266
res = assert_python_ok('-c', code, PYTHON_CPU_COUNT='default')
12671267
self.assertEqual(self.res2int(res), (os.cpu_count(), os.process_cpu_count()))
12681268

1269-
@unittest.expectedFailure # TODO: RUSTPYTHON
12701269
def test_import_time(self):
12711270
# os is not imported at startup
12721271
code = 'import os; import os'

‎Lib/test/test_exceptions.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,6 @@ class MySyntaxError(SyntaxError):
24552455
^^^^^
24562456
""", err.getvalue())
24572457

2458-
@unittest.expectedFailure # TODO: RUSTPYTHON
24592458
def test_encodings(self):
24602459
self.addCleanup(unlink, TESTFN)
24612460
source = (

‎Lib/test/test_minidom.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ def testGetAttributeNode(self):
490490
self.assertIsNone(elem.getAttributeNode("b"))
491491
dom.unlink()
492492

493-
@unittest.expectedFailure # TODO: RUSTPYTHON
494493
def testGetElementsByTagNameNS(self):
495494
d="""<foo xmlns:minidom='http://pyxml.sf.net/minidom'>
496495
<minidom:myelem/>
@@ -1516,7 +1515,6 @@ def testNodeListItem(self):
15161515
"test NodeList.item()")
15171516
doc.unlink()
15181517

1519-
@unittest.expectedFailure # TODO: RUSTPYTHON
15201518
def testEncodings(self):
15211519
doc = parseString('<foo>&#x20ac;</foo>')
15221520
self.assertEqual(doc.toxml(),

‎Lib/test/test_monitoring.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2333,7 +2333,6 @@ def test_attr(self):
23332333
self.check_events(nonopt_func, recorders=self.RECORDERS, expected=nonopt_expected)
23342334
self.check_events(opt_func, recorders=self.RECORDERS, expected=opt_expected)
23352335

2336-
@unittest.expectedFailure # TODO: RUSTPYTHON; line number differences in multi-line super() calls
23372336
def test_vs_other_type_call(self):
23382337
code_template = textwrap.dedent("""
23392338
class C:

0 commit comments

Comments
 (0)