Closed
Description
Bug report
Bug description:
test_dataclass_derived_generic_from_slotted_base
is duplicated (regression introduced in fa9b9cb):
def test_dataclass_derived_generic_from_slotted_base(self):
T = typing.TypeVar('T')
class WithSlots:
__slots__ = ('a', 'b')
@dataclass(slots=True, weakref_slot=True)
class E1(WithSlots, Generic[T]):
pass
...
def test_dataclass_derived_generic_from_slotted_base(self):
T = typing.TypeVar('T')
class WithWeakrefSlot:
__slots__ = ('__weakref__',)
@dataclass(slots=True, weakref_slot=True)
class G1(WithWeakrefSlot, Generic[T]):
pass
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other, Linux