8000 test_sysconfig.test_user_similar fails on --disable-gil --with-platlibdir=lib64 · Issue #122014 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

test_sysconfig.test_user_similar fails on --disable-gil --with-platlibdir=lib64 #122014

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

Closed
hroncok opened this issue Jul 19, 2024 · 1 comment
Closed
Labels
type-bug An unexpected behavior, bug, or error

Comments

@hroncok
Copy link
Contributor
hroncok commented Jul 19, 2024

Bug report

Bug description:

$ /configure --config-cache --without-ensurepip --with-pydebug --disable-gil --with-platlibdir=lib64 && make
...
$ ./python -m test test_sysconfig
Using random seed: 1721645515
0:00:00 load avg: 1.40 Run 1 test sequentially in a single process
0:00:00 load avg: 1.40 [1/1] test_sysconfig
test test_sysconfig failed -- Traceback (most recent call last):
  File ".../cpython/Lib/test/test_sysconfig.py", line 424, in test_user_similar
    self.assertEqual(user_path, expected)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
AssertionError: '/home/.../.local/lib/python3.14t/site-packages' != '/home/.../.local/lib64/python3.14t/site-packages'
- /home/.../.local/lib/python3.14t/site-packages
+ /home/.../.local/lib64/python3.14t/site-packages
?                     ++


test_sysconfig failed (1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_sysconfig

Total duration: 248 ms
Total tests: run=27 failures=1 skipped=3
Total test files: run=1/1 failed=1
Result: FAILURE

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Linux

Linked PRs

@hroncok hroncok added the type-bug An unexpected behavior, bug, or error label Jul 19, 2024
@hroncok
Copy link
Contributor Author
hroncok commented Jul 19, 2024

I believe the code in the tests makes assumptions about the scheme and the t in here makes the tests fail:

if name == 'platlib':
# Replace "/lib64/python3.11/site-packages" suffix
# with "/lib/python3.11/site-packages".
py_version_short = sysconfig.get_python_version()
suffix = f'python{py_version_short}/site-packages'
expected = expected.replace(f'/{sys.platlibdir}/{suffix}',
f'/lib/{suffix}')

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 19, 2024
…imilar (pythongh-122017)

(cherry picked from commit 186b4d8)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
colesbury pushed a commit that referenced this issue Jul 19, 2024
…similar (gh-122017) (#122039)

(cherry picked from commit 186b4d8)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
@hroncok hroncok closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant
0