@@ -235,8 +235,6 @@ def __iter__(self):
235
235
self .assertRaises (TypeError , iter , IterClass ())
236
236
237
237
# Test two-argument iter() with callable instance
238
- # TODO: RUSTPYTHON
239
- @unittest .expectedFailure
240
238
def test_iter_callable (self ):
241
239
class C :
242
240
def __init__ (self ):
@@ -250,8 +248,6 @@ def __call__(self):
250
248
self .check_iterator (iter (C (), 10 ), list (range (10 )), pickle = False )
251
249
252
250
# Test two-argument iter() with function
253
- # TODO: RUSTPYTHON
254
- @unittest .expectedFailure
255
251
def test_iter_function (self ):
256
252
def spam (state = [0 ]):
257
253
i = state [0 ]
@@ -260,8 +256,6 @@ def spam(state=[0]):
260
256
self .check_iterator (iter (spam , 10 ), list (range (10 )), pickle = False )
261
257
262
258
# Test two-argument iter() with function that raises StopIteration
263
- # TODO: RUSTPYTHON
264
- @unittest .expectedFailure
265
259
def test_iter_function_stop (self ):
266
260
def spam (state = [0 ]):
267
261
i = state [0 ]
@@ -272,8 +266,6 @@ def spam(state=[0]):
272
266
self .check_iterator (iter (spam , 20 ), list (range (10 )), pickle = False )
273
267
274
268
# Test exception propagation through function iterator
275
- # TODO: RUSTPYTHON
276
- @unittest .expectedFailure
277
269
def test_exception_function (self ):
278
270
def spam (state = [0 ]):
279
271
i = state [0 ]
@@ -962,8 +954,6 @@ def test_sinkstate_sequence(self):
962
954
a .n = 10
963
955
self .assertEqual (list (b ), [])
964
956
965
- # TODO: RUSTPYTHON
966
- @unittest .expectedFailure
967
957
def test_sinkstate_callable (self ):
968
958
# This used to fail
969
959
def spam (state = [0 ]):
0 commit comments