mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-132515: de-duplicate test_dataclass_derived_generic_from_slotted_base
(#132516)
This commit is contained in:
parent
4865c09cf3
commit
45c447bf91
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue