Skip to content

Commit 32b24c1

Browse files
committed
rollback test_class
1 parent 550fb30 commit 32b24c1

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

Lib/test/test_class.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,7 @@ def __init__(self, obj):
851851
except ImportError:
852852
has_inline_values = None
853853

854-
855-
Py_TPFLAGS_MANAGED_DICT = (1 << 4)
856-
857-
class NoManagedDict:
858-
__slots__ = ('a',)
854+
Py_TPFLAGS_MANAGED_DICT = (1 << 2)
859855

860856
class Plain:
861857
pass
@@ -869,18 +865,11 @@ def __init__(self):
869865
self.c = 3
870866
self.d = 4
871867

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))
881868

882869
class TestInlineValues(unittest.TestCase):
883870

871+
# TODO: RUSTPYTHON
872+
@unittest.expectedFailure
884873
def test_flags(self):
885874
self.assertEqual(Plain.__flags__ & Py_TPFLAGS_MANAGED_DICT, Py_TPFLAGS_MANAGED_DICT)
886875
self.assertEqual(WithAttrs.__flags__ & Py_TPFLAGS_MANAGED_DICT, Py_TPFLAGS_MANAGED_DICT)

0 commit comments

Comments
 (0)