Skip to content

Commit d55b3e6

Browse files
committed
Revert non-Windows test changes
1 parent 3c91201 commit d55b3e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: Lib/test/test_sysconfig.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,12 @@ def test_library(self):
464464
framework = sysconfig.get_config_var('PYTHONFRAMEWORK')
465465
self.assertEqual(ldlibrary, f"{framework}.framework/{framework}")
466466
else:
467-
self.assertEqual(library, f'libpython{major}.{minor}{abiflags}.a')
467+
self.assertStartsWith(library, f'libpython{major}.{minor}')
468+
self.assertEndsWith(library, '.a')
468469
if sys.platform == 'darwin' and sys._framework:
469470
self.skipTest('gh-110824: skip LDLIBRARY test for framework build')
470471
else:
471-
self.assertStartsWith(ldlibrary, f'libpython{major}.{minor}{abiflags}')
472+
self.assertStartsWith(ldlibrary, f'libpython{major}.{minor}')
472473

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

0 commit comments

Comments
 (0)