From: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Date: Mon, 14 Apr 2025 15:06:38 +0000 (+0200) Subject: gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (#132516) X-Git-Tag: v3.14.0b1~483 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45c447bf91ffabe4c0ba6d18f37d4e58925d5c91;p=thirdparty%2FPython%2Fcpython.git gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (#132516) --- diff --git a/Lib/test/test_dataclasses/__init__.py b/Lib/test/test_dataclasses/__init__.py index 869a043211b0..a97b77a68f01 100644 --- a/Lib/test/test_dataclasses/__init__.py +++ b/Lib/test/test_dataclasses/__init__.py @@ -3635,7 +3635,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 @@ -3715,7 +3714,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: