mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-122014: Account for abi_thread in test_sysconfig.test_user_similar (gh-122017)
This commit is contained in:
parent
d66b06107b
commit
186b4d8ea2
1 changed files with 2 additions and 2 deletions
|
@ -417,8 +417,8 @@ class TestSysConfig(unittest.TestCase):
|
|||
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'
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue