Skip to content

Commit bad1c6f

Browse files
committed
adjust filaing test markers
1 parent 1d92f78 commit bad1c6f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Lib/test/test_weakref.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ def __iter__(self):
432432
# can be killed in the middle of the call
433433
"blech" in p
434434

435+
# TODO: RUSTPYTHON
436+
@unittest.expectedFailure
435437
def test_proxy_next(self):
436438
arr = [4, 5, 6]
437439
def iterator_func():
@@ -447,6 +449,8 @@ def __iter__(self):
447449
# Calls proxy.__next__
448450
self.assertEqual(list(weak_it), [4, 5, 6])
449451

452+
# TODO: RUSTPYTHON
453+
@unittest.expectedFailure
450454
def test_proxy_bad_next(self):
451455
# bpo-44720: PyIter_Next() shouldn't be called if the reference
452456
# isn't an iterator.
@@ -462,6 +466,8 @@ def __iter__(self):
462466
with self.assertRaisesRegex(TypeError, msg):
463467
list(a)
464468

469+
# TODO: RUSTPYTHON
470+
@unittest.expectedFailure
465471
def test_proxy_reversed(self):
466472
class MyObj:
467473
def __len__(self):
@@ -472,6 +478,8 @@ def __reversed__(self):
472478
obj = MyObj()
473479
self.assertEqual("".join(reversed(weakref.proxy(obj))), "cba")
474480

481+
# TODO: RUSTPYTHON
482+
@unittest.expectedFailure
475483
def test_proxy_hash(self):
476484
class MyObj:
477485
def __hash__(self):
@@ -2079,8 +2087,6 @@ def add(x,y,z):
20792087
self.assertEqual(f.alive, False)
20802088
self.assertEqual(res, [199])
20812089

2082-
# TODO: RUSTPYTHON
2083-
@unittest.expectedFailure
20842090
def test_arg_errors(self):
20852091
def fin(*args, **kwargs):
20862092
res.append((args, kwargs))

0 commit comments

Comments
 (0)