Skip to content

Commit e59ddbc

Browse files
committed
Skip test if SOABI_PLATFORM is undefined
1 parent 2d0e27f commit e59ddbc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_sysconfig.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ def test_soabi(self):
459459

460460
@unittest.skipIf(not _imp.extension_suffixes(), "stub loader has no suffixes")
461461
@unittest.skipIf(sys.platform == "win32", "Does not apply to Windows")
462+
@unittest.skipIf(sysconfig.get_config_var('SOABI_PLATFORM') == 0,
463+
"SOABI_PLATFORM is undefined")
462464
def test_soabi_platform(self):
463465
soabi_platform = sysconfig.get_config_var('SOABI_PLATFORM')
464466
soabi = sysconfig.get_config_var('SOABI')

0 commit comments

Comments
 (0)