Skip to content

test_sysconfig fails if executed from a relocated place #133742

Open
@pablogsal

Description

@pablogsal

Bug report

Bug description:

The json and the sysconfig value differ in srcdir

[2025-05-08T15:37:25.722Z] -  'srcdir': '/someplace/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/config-3.14-x86_64-linux-gnu'}
[2025-05-08T15:37:25.722Z] +  'srcdir': '/opt/someplace/lib64/python3.14/config-3.14-x86_64-linux-gnu'}
[2025-05-08T15:37:25.722Z] 
[2025-05-08T15:37:25.722Z] ----------------------------------------------------------------------
[2025-05-08T15:37:25.722Z] Ran 37 tests in 0.134s
[2025-05-08T15:37:25.722Z] 
[2025-05-08T15:37:25.722Z] FAILED (failures=1, skipped=3)```


### CPython versions tested on:

3.14

### Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-sysconfigtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions