8000 gh-122014: Account with abi_thread in test_sysconfig.test_user_similar (#122014) by befeleme · Pull Request #122017 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-122014: Account with abi_thread in test_sysconfig.test_user_similar (#122014) #122017

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

Merged
merged 2 commits into from
Jul 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Account with abi_thread in test_sysconfig.test_user_similar (#122014)
  • Loading branch information
befeleme committed Jul 19, 2024
commit 49d1a3375c7a49d82eccc7861435189766b1d529
8 changes: 4 additions & 4 deletions Lib/test/test_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@ def test_user_similar(self):
# bpo-44860: platlib of posix_user doesn't use sys.platlibdir,
# whereas posix_prefix does.
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'
# Replace "/lib64/python3.11{abi_thread}/site-packages" suffix
# with "/lib/python3.11{abi_thread}/site-packages".
py_version_abi = sysconfig._get_python_version_abi()
suffix = f'python{py_version_abi}/site-packages'
expected = expected.replace(f'/{sys.platlibdir}/{suffix}',
f'/lib/{suffix}')
self.assertEqual(user_path, expected)
Expand Down
Loading
0