Skip to content

Commit 7ff591f

Browse files
committed
Remove expectedFailure from DictProxyTests iter tests
test_iter_keys, test_iter_values, test_iter_items now pass because class bodies emit __static_attributes__ and __firstlineno__, matching the expected dict key set.
1 parent ebe3497 commit 7ff591f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/test/test_descr.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5180,7 +5180,6 @@ def meth(self):
51805180
pass
51815181
self.C = C
51825182

5183-
@unittest.expectedFailure # TODO: RUSTPYTHON
51845183
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
51855184
'trace function introduces __local__')
51865185
def test_iter_keys(self):
@@ -5194,7 +5193,6 @@ def test_iter_keys(self):
51945193
'__static_attributes__', '__weakref__',
51955194
'meth'])
51965195

5197-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: 5 != 7
51985196
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
51995197
'trace function introduces __local__')
52005198
def test_iter_values(self):
@@ -5204,7 +5202,6 @@ def test_iter_values(self):
52045202
values = list(it)
52055203
self.assertEqual(len(values), 7)
52065204

5207-
@unittest.expectedFailure # TODO: RUSTPYTHON
52085205
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
52095206
'trace function introduces __local__')
52105207
def test_iter_items(self):

0 commit comments

Comments
 (0)