We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3804462 commit 419d485Copy full SHA for 419d485
Lib/test/test_sysconfig.py
@@ -459,7 +459,10 @@ def test_library(self):
459
ldlibrary = sysconfig.get_config_var('LDLIBRARY')
460
major, minor = sys.version_info[:2]
461
if sys.platform == 'win32':
462
- self.assertTrue(library.startswith(f'python{major}{minor}'))
+ if 'mingw' in sys.version.lower():
463
+ self.assertTrue(library.startswith(f'libpython{major}.{minor}'))
464
+ else:
465
+ self.assertTrue(library.startswith(f'python{major}{minor}'))
466
self.assertTrue(library.endswith('.dll'))
467
self.assertEqual(library, ldlibrary)
468
elif is_apple_mobile:
0 commit comments