Skip to content

Add tests for PyWeakref_* C API #151130

@serhiy-storchaka

Description

@serhiy-storchaka

Currently all tests for PyWeakref_* C API are implemented in a single C function test_weakref_capi() in Modules/_testcapimodule.c. it is not easy to add new tests, also the failure report is not very informative. The following PR adds separate module test.test_capi.test_weakref and wrappers in _testcapi and _testlimitedcapi modules to write tests in Python.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixestestsTests in the Lib/test dirtopic-C-API
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions