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 — [tests] Backport test_cext and test_cppext (C API tests) from main to the 3.12 branch · Issue #127906 · python/cpython

[tests] Backport test_cext and test_cppext (C API tests) from main to the 3.12 branch #127906

New issue
Copy link
New issue
Copy link
Closed
Closed
[tests] Backport test_cext and test_cppext (C API tests) from main to the 3.12 branch#127906
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-C-API

Description

@vstinner
vstinner
opened on Dec 13, 2024
Issue body actions

The C API is not well tested in the 3.12 branch. I propose to backport test_cext and test_cppext from the main branch to the 3.12 branch.

Example of recent C++ regression: #127902

Linked PRs

  • [3.12] gh-127906: Declare timeval struct in pytime.h on Windows #127908
  • [3.12] gh-127906: Backport test_cext from the main branch #127912
  • [3.13] gh-127906: Backport test_cppext changes from main #127914
  • [3.12] gh-127906: Backport test_cppext from the main branch #127915
  • gh-127906: Test the limited C API in test_cppext #127916
  • [3.13] gh-127906: Test the limited C API in test_cppext (GH-127916) #127919
  • [3.12] gh-127906: Test the limited C API in test_cppext (GH-127916) #127920
  • [3.13] gh-127906: Backport test_cext changes from the main branch #127923
  • [3.12] gh-127906: Skip limited C API test_cext tests if Py_TRACE_REFS #127993
  • [3.13] gh-127906: Fix Py_BUILD_ASSERT_EXPR() on Windows #127994
  • gh-127906: Add missing sys import to test_cppext #132902
  • [3.13] gh-127906: Add missing sys import to test_cppext (GH-132902) #132904
  • [3.12] gh-127906: Add missing sys import to test_cppext (GH-132902) #132905

Activity

Next
  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-C-API
    on Dec 13, 2024
  2. vstinner commented on Dec 13, 2024

    @vstinner
    vstinner
    on Dec 13, 2024
    MemberAuthor
    More actions

    On the 3.12 branch, test_cext currently fails with these warnings:

      C:\victor\python\3.12\include\cpython/unicodeobject.h(205): error C2220: the following warning is treated as an error
      C:\victor\python\3.12\include\cpython/unicodeobject.h(205): warning C4100: '_unused_op': unreferenced formal parameter
      C:\victor\python\3.12\include\cpython/unicodeobject.h(395): warning C4100: '_unused_op': unreferenced formal parameter
      C:\victor\python\3.12\include\cpython/pytime.h(192): warning C4115: 'timeval': named type definition in parentheses
      extension.c(22): warning C4100: '_unused_module': unreferenced formal parameter
      extension.c(44): warning C4100: '_unused_module': unreferenced formal parameter
    

    I backported MSVC support in Py_UNUSED() to 3.12 to fix unicodeobject.h: PR gh-127907.

  3. vstinner commented on Dec 13, 2024

    @vstinner
    vstinner
    on Dec 13, 2024
    MemberAuthor
    More actions

    C:\victor\python\3.12\include\cpython/pytime.h(192): warning C4115: 'timeval': named type definition in parentheses

    I wrote #127908 to fix this pytime.h warning.

  4. vstinner
    added 11 commits that reference this issue on Dec 13, 2024

    [3.12] gh-127906: Declare timeval struct in pytime.h on Windows (#127908

    c77bfd7

    pythongh-127906: Backport test_cext from the main branch

    7aeb445

    pythongh-127906: Backport test_cppext changes from main

    48660d5

    pythongh-127906: Update test_cppext from the main branch

    269228d

    pythongh-127906: Backport test_cppext from the main branch

    d80dae7

    pythongh-127906: Test the limited C API in test_cppext

    03d29cd

    pythongh-127906: Test the limited C API in test_cppext

    c95b2d1

    [3.12] gh-127906: Backport test_cppext changes from the main branch (#…

    6544f99

    [3.13] gh-127906: Backport test_cppext changes from the main branch (#…

    b620e50

    pythongh-127906: Test the limited C API in test_cppext

    79b2f66

    gh-127906: Test the limited C API in test_cppext (#127916)

    d05a4e6
  5. 27 remaining items

  6. hroncok
    added a commit that references this issue on May 5, 2025

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    f67668d
  7. hroncok
    added 2 commits that reference this issue on May 12, 2025

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    feebd7c

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    9bb3cf1
  8. stratakis
    added a commit that references this issue on Jun 3, 2025

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    a07000d
  9. hrnciar
    added a commit that references this issue on Jun 4, 2025

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    31bffb9
  10. stratakis
    added a commit that references this issue on Jun 12, 2025

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    467772f
  11. hroncok
    added a commit that references this issue on Jun 12, 2025

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    c5f0853
  12. befeleme
    added a commit that references this issue on Oct 10, 2025

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    46bb3c5
  13. hrnciar
    added a commit that references this issue on Mar 3, 2026

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    e320aa6
  14. hroncok
    added a commit that references this issue on Mar 26, 2026

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    98f5001
  15. befeleme
    added a commit that references this issue on Aug 18, 2026

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    8c58071
  16. hrnciar
    added a commit that references this issue on Oct 1, 2026

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    696823e
  17. hroncok
    added 2 commits that reference this issue on Oct 1, 2026

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    aa4c84e

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    6fc6921
  18. befeleme
    added a commit that references this issue on Oct 26, 2026

    00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…

    5828827
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

    testsTests 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.