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 @@ -75,17 +75,25 @@ def test_abi3_extension_suffixes(self):
7575 self .assertIn (".abi3t.so" , suffixes )
7676
7777 @unittest .skipIf (
78- not ( sysconfig .get_config_var ("SOABI_PLATFORM" ) or "" ). strip ( '"' ),
79- "Linux-only test"
78+ not sysconfig .get_config_var ("SOABI_PLATFORM" ),
79+ "Linux-only test" ,
8080 )
8181 def test_multiarch_abi3_extension_suffixes (self ):
8282 suffixes = self .machinery .EXTENSION_SUFFIXES
83- platform = sysconfig .get_config_var ("SOABI_PLATFORM" ).strip ('"' )
83+ platform = sysconfig .get_config_var ("SOABI_PLATFORM" )
84+ abi3_suffixes = [".abi3.so" ]
85+
86+ self .assertIn (".abi3t.so" , suffixes )
87+ if platform :
88+ abi3_suffixes .append (f".abi3-{ platform } .so" )
89+ self .assertIn (f".abi3t-{ platform } .so" , suffixes )
90+
8491 if Py_GIL_DISABLED :
85- self .assertNotIn (f".abi3-{ platform } .so" , suffixes )
92+ for suffix in abi3_suffixes :
93+ self .assertNotIn (suffix , suffixes )
8694 else :
87- self . assertIn ( f".abi3- { platform } .so" , suffixes )
88- self .assertIn (f".abi3t- { platform } .so" , suffixes )
95+ for suffix in abi3_suffixes :
96+ self .assertIn (suffix , suffixes )
8997
9098
9199(Frozen_FinderTests ,
You can’t perform that action at this time.
0 commit comments