Skip to content

Commit

Permalink
Update python-config-test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov authored Dec 5, 2022
1 parent 08fcc9e commit 2e99e99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sources/python-config-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -81,4 +81,4 @@
if sys.version_info < (3, 12):
if not have_libreadline:
print('Missing libreadline')
exit(1)
exit(1)

0 comments on commit 2e99e99

Please sign in to comment.