Skip to content

test_capi.test_opt.test_call_len_known_length fails on JIT+debug builds #139393

@ashm-dev

Description

@ashm-dev

Bug report

Bug description:

Bug Description

The test_capi test suite fails when CPython is built from the main branch with debug, optimizations (PGO), LTO, and the experimental JIT enabled.

Steps to Reproduce

  1. Clone the cpython repository.
  2. Configure the build with the following flags:
    ./configure --with-pydebug --enable-optimizations --with-lto --enable-experimental-jit
  3. Build and run tests:
    sudo make -j"$(nproc)" test

Expected Behavior

All tests should pass.

Actual Behavior

The test run fails with one failed test: test_capi.
The specific failing test is test_call_len_known_length within test.test_capi.test_opt.TestUopsOptimization.

Test Output

sudo_make_j_nproc_test.txt

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

Labels

3.15new features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)testsTests in the Lib/test dirtopic-C-APItopic-JITtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions