We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test_interpreters
1 parent 042bf76 commit 69c6157Copy full SHA for 69c6157
Lib/test/test_interpreters/__init__.py
@@ -1,6 +1,9 @@
1
import os
2
from test.support import load_package_tests, Py_GIL_DISABLED
3
+import unittest
4
-if not Py_GIL_DISABLED:
5
- def load_tests(*args):
6
- return load_package_tests(os.path.dirname(__file__), *args)
+if Py_GIL_DISABLED:
+ raise unittest.SkipTest("GIL disabled")
7
+
8
+def load_tests(*args):
9
+ return load_package_tests(os.path.dirname(__file__), *args)
0 commit comments