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.
--disable-gil
1 parent 5eae8dc commit 3c2f321Copy full SHA for 3c2f321
Lib/test/test_importlib/test_windows.py
@@ -4,6 +4,7 @@
4
import os
5
import re
6
import sys
7
+import sysconfig
8
import unittest
9
from test.support import import_helper
10
from contextlib import contextmanager
@@ -111,8 +112,10 @@ def test_module_not_found(self):
111
112
class WindowsExtensionSuffixTests:
113
def test_tagged_suffix(self):
114
suffixes = self.machinery.EXTENSION_SUFFIXES
- expected_tag = ".cp{0.major}{0.minor}-{1}.pyd".format(sys.version_info,
115
- re.sub('[^a-zA-Z0-9]', '_', get_platform()))
+ abi_flags = "t" if sysconfig.get_config_var("Py_NOGIL") else ""
116
+ ver = sys.version_info
117
+ platform = re.sub('[^a-zA-Z0-9]', '_', get_platform())
118
+ expected_tag = f".cp{ver.major}{ver.minor}{abi_flags}-{platform}.pyd"
119
try:
120
untagged_i = suffixes.index(".pyd")
121
except ValueError:
0 commit comments