]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (#132516)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 14 Apr 2025 15:06:38 +0000 (17:06 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 15:06:38 +0000 (15:06 +0000)
Lib/test/test_dataclasses/__init__.py

index 869a043211b0a1cf96b51b66ce114feaa516368e..a97b77a68f016c97f106081428818a482029a8ba 100644 (file)
@@ -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: