Skip to content

_testcapi should be multi-phase #139098

@ZeroIntensity

Description

@ZeroIntensity

_testcapi uses legacy single-phase initialization, which prevents us from being able to use it in subinterpreter tests. Historically, _testcapi was kept as single-phase because we needed a module to test single-phase init, but since we now have _testsinglephase, we can move it to multi-phase init.

This is currently blocking #136004, as _testcapi is needed for one of the tests.

Linked PRs

Metadata

Metadata

Assignees

Labels

extension-modulesC modules in the Modules dirsprinttestsTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions