Skip to content

test_dataclass_derived_generic_from_slotted_base is duplicated #132515

Closed
@picnixz

Description

@picnixz

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

Linked PRs

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtopic-dataclassestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions