Skip to content

Commit c5c2bd0

Browse files
authored
Add tool for easier test updates (#6089)
* Add scripts/lib_updater.py * Update `Lib/test/test_os.py` with tool * Update `test_list.py` as well
1 parent 85ca280 commit c5c2bd0

File tree

3 files changed

+396
-137
lines changed

3 files changed

+396
-137
lines changed

Lib/test/test_list.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def test_keyword_args(self):
4848
with self.assertRaisesRegex(TypeError, 'keyword argument'):
4949
list(sequence=[])
5050

51-
# TODO: RUSTPYTHON
52-
@unittest.expectedFailure
51+
@unittest.expectedFailure # TODO: RUSTPYTHON
5352
def test_keywords_in_subclass(self):
5453
class subclass(list):
5554
pass
@@ -105,8 +104,7 @@ def test_empty_slice(self):
105104
x[:] = x
106105
self.assertEqual(x, [])
107106

108-
# TODO: RUSTPYTHON
109-
@unittest.skip("TODO: RUSTPYTHON crash")
107+
@unittest.skip("TODO: RUSTPYTHON; crash")
110108
def test_list_resize_overflow(self):
111109
# gh-97616: test new_allocated * sizeof(PyObject*) overflow
112110
# check in list_resize()
@@ -120,8 +118,7 @@ def test_list_resize_overflow(self):
120118
with self.assertRaises((MemoryError, OverflowError)):
121119
lst *= size
122120

123-
# TODO: RUSTPYTHON
124-
@unittest.skip("TODO: RUSTPYTHON hangs")
121+
@unittest.skip("TODO: RUSTPYTHON; hangs")
125122
def test_repr_mutate(self):
126123
class Obj:
127124
@staticmethod
@@ -230,7 +227,6 @@ class L(list): pass
230227
with self.assertRaises(TypeError):
231228
(3,) + L([1,2])
232229

233-
# TODO: RUSTPYTHON
234230
@unittest.skip("TODO: RUSTPYTHON; hang")
235231
def test_equal_operator_modifying_operand(self):
236232
# test fix for seg fault reported in bpo-38588 part 2.
@@ -257,7 +253,6 @@ def __eq__(self, other):
257253
list4 = [1]
258254
self.assertFalse(list3 == list4)
259255

260-
# TODO: RUSTPYTHON
261256
@unittest.skip("TODO: RUSTPYTHON; hang")
262257
def test_lt_operator_modifying_operand(self):
263258
# See gh-120298

0 commit comments

Comments
 (0)