diff --git a/Lib/test/test_dataclasses/__init__.py b/Lib/test/test_dataclasses/__init__.py index 876dbc77328..9065b9d773c 100644 --- a/Lib/test/test_dataclasses/__init__.py +++ b/Lib/test/test_dataclasses/__init__.py @@ -3590,7 +3590,6 @@ class TestSlots(unittest.TestCase): a_ref = weakref.ref(a) self.assertIs(a.__weakref__, a_ref) - def test_dataclass_derived_weakref_slot(self): class A: pass @@ -3670,7 +3669,7 @@ class TestSlots(unittest.TestCase): self.assertTrue(F.__weakref__) F() - def test_dataclass_derived_generic_from_slotted_base(self): + def test_dataclass_derived_generic_from_slotted_base_with_weakref(self): T = typing.TypeVar('T') class WithWeakrefSlot: