Skip to content

Commit 2d3b125

Browse files
key262yekyouknowone
authored andcommitted
Add expectedFailure and skip decorators for RUSTPYTHON tests in test_class.py
1 parent 4081c08 commit 2d3b125

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎Lib/test/test_class.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ def __init__(self):
869869

870870
class TestInlineValues(unittest.TestCase):
871871

872+
# TODO: RUSTPYTHON
873+
@unittest.expectedFailure
872874
def test_flags(self):
873875
self.assertEqual(Plain.__flags__ & Py_TPFLAGS_MANAGED_DICT, Py_TPFLAGS_MANAGED_DICT)
874876
self.assertEqual(WithAttrs.__flags__ & Py_TPFLAGS_MANAGED_DICT, Py_TPFLAGS_MANAGED_DICT)
@@ -941,6 +943,8 @@ def __init__(self):
941943
obj.foo = None # Aborted here
942944
self.assertEqual(obj.__dict__, {"foo":None})
943945

946+
# TODO: RUSTPYTHON
947+
@unittest.expectedFailure
944948
def test_store_attr_deleted_dict(self):
945949
class Foo:
946950
pass
@@ -950,6 +954,8 @@ class Foo:
950954
f.a = 3
951955
self.assertEqual(f.a, 3)
952956

957+
# TODO: RUSTPYTHON
958+
@unittest.expectedFailure
953959
def test_rematerialize_object_dict(self):
954960
# gh-121860: rematerializing an object's managed dictionary after it
955961
# had been deleted caused a crash.
@@ -968,6 +974,7 @@ class Bar: pass
968974
self.assertIsInstance(f, Bar)
969975
self.assertEqual(f.__dict__, {})
970976

977+
@unittest.skip("TODO: RUSTPYTHON, unexpectedly long runtime")
971978
def test_store_attr_type_cache(self):
972979
"""Verifies that the type cache doesn't provide a value which is
973980
inconsistent from the dict."""

0 commit comments

Comments
 (0)