Skip to content

SystemError PyState_AddModule called on module with slots in testmultiphase #140751

@YuanchengJiang

Description

@YuanchengJiang

Bug report

Bug description:

import _testmultiphase
_testmultiphase.call_state_registration_func(1)
    _testmultiphase.call_state_registration_func(1)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
SystemError: PyState_AddModule called on module with slots

Not sure if this is interesting, as it is a test lib.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions