]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 14 Apr 2025 15:29:20 +0000 (17:29 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 15:29:20 +0000 (15:29 +0000)
gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (GH-132516)
(cherry picked from commit 45c447bf91ffabe4c0ba6d18f37d4e58925d5c91)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/test/test_dataclasses/__init__.py

index 876dbc773285aaea01779a389af084c028be3e3a..9065b9d773c3208c049a9a520861b34d56ab46bd 100644 (file)
@@ -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: