Skip to content

gh-110824 Fix test_sysconfig.test_library on framework builds. #113298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 2, 2024
Merged
5 changes: 4 additions & 1 deletion Lib/test/test_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ def test_library(self):
else:
self.assertTrue(library.startswith(f'libpython{major}.{minor}'))
self.assertTrue(library.endswith('.a'))
self.assertTrue(ldlibrary.startswith(f'libpython{major}.{minor}'))
if sys.platform == 'darwin' and sys._framework:
self.assertTrue(ldlibrary.endswith(f'{major}.{minor}/{sys._framework}'))
else:
self.assertTrue(ldlibrary.startswith(f'libpython{major}.{minor}'))

@unittest.skipUnless(sys.platform == "darwin", "test only relevant on MacOSX")
@requires_subprocess()
Expand Down