Skip to content

Add C API tests for PyObject_CopyData and PyBuffer_FillContiguousStrides #160688

Open

Description

@Davien21

Part of #94808.

Neither function has a wrapper in Modules/_testcapi or a test in Lib/test/test_capi. PyObject_CopyData has had real bugs (gh-143737) and there's an open overflow fix (gh-153690) with nothing to test it against. I'll add wrappers and tests along the lines of gh-158102, covering C/F order, non-contiguous sources, size mismatches and error paths.

Linked PRs

Activity

  1. added a commit that references this issue on Oct 26, 2026
  2. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions