Skip to content

Commit 1071cb9

Browse files
authored
Use support.skipUnless()
1 parent 89cf80d commit 1071cb9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from test import support
1+
import os
22

3+
from test import support
34

4-
if support.Py_GIL_DISABLED:
5-
import os
65

7-
def load_tests(*args):
8-
return support.load_package_tests(os.path.dirname(__file__), *args)
6+
@support.skipUnless(support.Py_GIL_DISABLED, "GIL enabled")
7+
def load_tests(*args):
8+
return support.load_package_tests(os.path.dirname(__file__), *args)

0 commit comments

Comments
 (0)