Skip to content

test_dataclass_derived_generic_from_slotted_base is duplicated #132515

Closed

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

Activity

  1. self-assigned this
    on Apr 14, 2025
  2. added a commit that references this issue on Apr 14, 2025
  3. added a commit that references this issue on Apr 14, 2025
  4. added a commit that references this issue on Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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