Skip to content

Add C API tests for the slice C API #158102

Description

@serhiy-storchaka

There are no tests for PySlice_Check(), PySlice_New(), PySlice_GetIndices(), PySlice_GetIndicesEx(), PySlice_Unpack() and PySlice_AdjustIndices().

PySlice_Unpack() and PySlice_AdjustIndices() are covered indirectly, by tests for slicing of lists, bytes, arrays and memoryviews. PySlice_GetIndices() is not used in CPython at all, and PySlice_GetIndicesEx() is only used in _curses.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions