Skip to content

Commit a0cef6d

Browse files
committed
rollback test_class
1 parent 550fb30 commit a0cef6d

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Lib/test/test_class.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,8 @@ def __init__(self, obj):
852852
has_inline_values = None
853853

854854

855-
Py_TPFLAGS_MANAGED_DICT = (1 << 4)
855+
Py_TPFLAGS_MANAGED_DICT = (1 << 2)
856856

857-
class NoManagedDict:
858-
__slots__ = ('a',)
859857

860858
class Plain:
861859
pass
@@ -869,15 +867,6 @@ def __init__(self):
869867
self.c = 3
870868
self.d = 4
871869

872-
class TestNoManagedValues(unittest.TestCase):
873-
def test_flags(self):
874-
self.assertEqual(NoManagedDict.__flags__ & Py_TPFLAGS_MANAGED_DICT, 0)
875-
876-
# TODO: RUSTPYTHON
877-
@unittest.expectedFailure
878-
def test_no_inline_values_for_slots_class(self):
879-
c = NoManagedDict()
880-
self.assertFalse(has_inline_values(c))
881870

882871
class TestInlineValues(unittest.TestCase):
883872

0 commit comments

Comments
 (0)