diff --git a/tests/sources/python-config-test.py b/tests/sources/python-config-test.py index de8a61d4..cc0a3cb5 100644 --- a/tests/sources/python-config-test.py +++ b/tests/sources/python-config-test.py @@ -27,9 +27,9 @@ if os_type == 'Darwin': expected_ld_library_extension = 'dylib' if pkg_installer: - expected_lib_dir_path = f'/Library/Frameworks/Python.framework/Versions/{version_major}.{version_minor}/lib' + expected_lib_dir_path = '/Library/Frameworks/Python.framework/Versions/{0}.{1}/lib'.format(version_major, version_minor) else: - expected_lib_dir_path = f'{os.getenv("AGENT_TOOLSDIRECTORY")}/Python/{version}/x64/lib' + expected_lib_dir_path = '{os.getenv("AGENT_TOOLSDIRECTORY")}/Python/{0}/x64/lib'.format(version) # Check modules ### Validate libraries path @@ -81,4 +81,4 @@ if sys.version_info < (3, 12): if not have_libreadline: print('Missing libreadline') - exit(1) \ No newline at end of file + exit(1)