File tree Expand file tree Collapse file tree
Lib/test/test_importlib/extension Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,19 +69,21 @@ def test_abi3_extension_suffixes(self):
6969 pass
7070 else :
7171 if Py_GIL_DISABLED :
72- self .assertFalse ( any ( ".abi3" in suffix ) for suffix in suffixes )
72+ self .assertNotIn ( ".abi3.so" , suffixes )
7373 else :
7474 self .assertIn (".abi3.so" , suffixes )
7575 self .assertIn (".abi3t.so" , suffixes )
7676
7777 @unittest .skipIf (
78- not sysconfig .get_config_var ("SOABI_PLATFORM" ).strip ('"' ),
78+ not ( sysconfig .get_config_var ("SOABI_PLATFORM" ) or " " ).strip ('"' ),
7979 "Linux-only test"
8080 )
8181 def test_multiarch_abi3_extension_suffixes (self ):
8282 suffixes = self .machinery .EXTENSION_SUFFIXES
8383 platform = sysconfig .get_config_var ("SOABI_PLATFORM" ).strip ('"' )
8484 if Py_GIL_DISABLED :
85+ self .assertNotIn (f".abi3-{ platform } .so" , suffixes )
86+ else :
8587 self .assertIn (f".abi3-{ platform } .so" , suffixes )
8688 self .assertIn (f".abi3t-{ platform } .so" , suffixes )
8789
You can’t perform that action at this time.
0 commit comments