mirror of https://github.com/python/cpython
[3.13] gh-122014: Account for abi_thread in test_sysconfig.test_user_similar (gh-122017) (#122039)
(cherry picked from commit 186b4d8ea2
)
Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
This commit is contained in:
parent
963e97d901
commit
e88114567f
|
@ -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…
Reference in New Issue