mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.13] gh-132515: de-duplicate test_dataclass_derived_generic_from_slotted_base
(GH-132516) (#132518)
gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (GH-132516)
(cherry picked from commit 45c447bf91
)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
fd0bba67c4
commit
a50aa3325b
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue