[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:
Miss Islington (bot) 2024-07-19 19:13:41 +02:00 committed by GitHub
parent 963e97d901
commit e88114567f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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)