-
-
Notifications
You must be signed in to change notification settings - Fork 36.5k
Add C API tests for the slice C API #158102
Copy link
Copy link
Open
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtopic-C-API
Description
Activity
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtopic-C-API
There are no tests for
PySlice_Check(),PySlice_New(),PySlice_GetIndices(),PySlice_GetIndicesEx(),PySlice_Unpack()andPySlice_AdjustIndices().PySlice_Unpack()andPySlice_AdjustIndices()are covered indirectly, by tests for slicing of lists, bytes, arrays and memoryviews.PySlice_GetIndices()is not used in CPython at all, andPySlice_GetIndicesEx()is only used in_curses.Linked PRs