GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add C API tests for the slice C API · Issue #158102 · python/cpython

Add C API tests for the slice C API #158102

New issue
Copy link
New issue
Copy link
Closed
Closed
Add C API tests for the slice C API#158102
Copy link
Assignees
serhiy-storchaka
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs 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

@serhiy-storchaka
serhiy-storchaka
opened on Sep 24, 2026
Issue body actions

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

  • gh-158102: Add tests for the slice C API #158120
  • [3.15] gh-158102: Add tests for the slice C API (GH-158120) #158291
  • [3.14] gh-158102: Add tests for the slice C API (GH-158120) #158292
  • [3.13] gh-158102: Add tests for the slice C API (GH-158120) #158293

Activity

  1. serhiy-storchaka
    self-assigned this
    on Sep 24, 2026
  2. serhiy-storchaka
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-C-API
    3.13only security fixesonly security fixes
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    3.16new features, bugs and security fixesnew features, bugs and security fixes
    on Sep 24, 2026
  3. serhiy-storchaka
    added a parent issue on Sep 24, 2026
    • Metabug: Improving C-level coverage #94808
  4. serhiy-storchaka
    added 3 commits that reference this issue on Sep 25, 2026

    gh-158102: Add tests for the slice C API (GH-158120)

    8c056c3

    [3.13] gh-158102: Add tests for the slice C API (GH-158120) (GH-158293)

    69368eb

    [3.14] gh-158102: Add tests for the slice C API (GH-158120) (GH-158292)

    fe0482a
  5. serhiy-storchaka
    closed this as completedon Sep 29, 2026
  6. serhiy-storchaka
    added a commit that references this issue on Oct 9, 2026

    [3.15] gh-158102: Add tests for the slice C API (GH-158120) (GH-158291)

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

Metadata

Metadata

Assignees

  • @serhiy-storchaka
    serhiy-storchaka

Labels

3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs 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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.