From 1b9b897ff211934af96af6e10a95d397a3fa4579 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Wed, 14 Sep 2022 10:13:30 +0200 Subject: [PATCH] migrate from .format to interpolation --- tests/sources/python-config-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sources/python-config-test.py b/tests/sources/python-config-test.py index b327327..928fa2b 100644 --- a/tests/sources/python-config-test.py +++ b/tests/sources/python-config-test.py @@ -27,9 +27,9 @@ if os_type == 'Linux': expected_ld_library_extension = 'so' if os_type == 'Darwin': expected_ld_library_extension = 'dylib' if pkg_installer: - expected_lib_dir_path = '/Library/Frameworks/Python.framework/Versions/{0}.{1}/lib'.format(version_major, version_minor) + expected_lib_dir_path = f'/Library/Frameworks/Python.framework/Versions/{version_major}.{version_minor}/lib' else: - expected_lib_dir_path = '{0}/Python/{1}/x64/lib'.format(os.getenv("AGENT_TOOLSDIRECTORY"), version) + expected_lib_dir_path = f'{os.getenv("AGENT_TOOLSDIRECTORY")}/Python/{version}/x64/lib' # Check modules ### Validate libraries path