Skip to content

Commit 465759a

Browse files
nineteendovstinner
andcommitted
Raise at module level
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 41793d4 commit 465759a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import os
2+
import unittest
23

34
from test import support
4-
from unittest import skipUnless
55

66

7-
@skipUnless(support.Py_GIL_DISABLED, "GIL enabled")
7+
if not support.Py_GIL_DISABLED:
8+
raise unittest.SkipTest("GIL enabled")
9+
810
def load_tests(*args):
911
return support.load_package_tests(os.path.dirname(__file__), *args)

0 commit comments

Comments
 (0)