Skip to content

Commit 1d0b61b

Browse files
committed
fix test
1 parent 8404359 commit 1d0b61b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Lib/test/test_importlib/extension/test_finder.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from test.support import is_apple_mobile
1+
from test.support import is_apple_mobile, Py_GIL_DISABLED
22
from test.test_importlib import abc, util
33

44
machinery = util.import_importlib('importlib.machinery')
@@ -59,16 +59,14 @@ def test_module(self):
5959
def test_failure(self):
6060
self.assertIsNone(self.find_spec('asdfjkl;'))
6161

62-
63-
class ExtensionSuffixTest(unittest.TestCase):
6462
def test_abi3_extension_suffixes(self):
65-
suffixes = machinery.EXTENSION_SUFFIXES
63+
suffixes = self.machinery.EXTENSION_SUFFIXES
6664
if 'win32' in sys.platform:
6765
self.assertIn(".pyd", suffixes)
68-
if 'cygwin' in sys.platform:
66+
elif 'cygwin' in sys.platform:
6967
pass
7068
else:
71-
if not support.Py_GIL_DISABLED:
69+
if not Py_GIL_DISABLED:
7270
self.assertIn(".abi3.so", suffixes)
7371
self.assertIn(".abi3t.so", suffixes)
7472

0 commit comments

Comments
 (0)