Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-95991: Add some infrastructure for testing Limited API in _testcapi #95992

Merged
merged 5 commits into from
Aug 17, 2022

Commits on Aug 15, 2022

  1. pythongh-95991: Add some infrastructure for testing Limited API in _t…

    …estcapi
    
    - Limited API needs to be enabled per source file
    - Some builds don't support Limited API, so Limited API tests must be skipped on those builds
      (currently this is `Py_TRACE_REFS`, but that may change.)
    - `Py_LIMITED_API` must be defined before `<Python.h>` is included.
    
    This puts the hoop-jumping in `testcapi/parts.h`, so individual
    test files can be relatively simple. (Currently that's only
    `vectorcall_limited.c`, imagine more.)
    encukou committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    368e434 View commit details
    Browse the repository at this point in the history
  2. Remove repeated #undef NDEBU

    encukou committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    df49186 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Update Lib/test/support/__init__.py

    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    encukou and erlend-aasland authored Aug 16, 2022
    Configuration menu
    Copy the full SHA
    4b946d4 View commit details
    Browse the repository at this point in the history
  2. Document requires_limited_api

    encukou committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    b3b50c0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee59cb3 View commit details
    Browse the repository at this point in the history