Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add expectedFailure and skip decorators for RUSTPYTHON tests in test_…
…class.py
  • Loading branch information
key262yek committed Mar 15, 2025
commit de3fa5cf58a313ed22e20ff88a23c1e8d29ea112
7 changes: 7 additions & 0 deletions Lib/test/test_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,8 @@ def __init__(self):

class TestInlineValues(unittest.TestCase):

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_flags(self):
self.assertEqual(Plain.__flags__ & Py_TPFLAGS_MANAGED_DICT, Py_TPFLAGS_MANAGED_DICT)
self.assertEqual(WithAttrs.__flags__ & Py_TPFLAGS_MANAGED_DICT, Py_TPFLAGS_MANAGED_DICT)
Expand Down Expand Up @@ -941,6 +943,8 @@ def __init__(self):
obj.foo = None # Aborted here
self.assertEqual(obj.__dict__, {"foo":None})

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_store_attr_deleted_dict(self):
class Foo:
pass
Expand All @@ -950,6 +954,8 @@ class Foo:
f.a = 3
self.assertEqual(f.a, 3)

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

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