From 7c5c53a3b5a7aa5226fc88a83abddd128c9066ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Mon, 14 Apr 2025 17:06:38 +0200 Subject: [PATCH] gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (GH-132516) (cherry picked from commit 45c447bf91ffabe4c0ba6d18f37d4e58925d5c91) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Lib/test/test_dataclasses/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_dataclasses/__init__.py b/Lib/test/test_dataclasses/__init__.py index 876dbc773285aa..9065b9d773c320 100644 --- a/Lib/test/test_dataclasses/__init__.py +++ b/Lib/test/test_dataclasses/__init__.py @@ -3590,7 +3590,6 @@ class A(Base): 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 F[T2](WithSlots): 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: