Skip to content

Commit

Permalink
pythongh-117953: Skip test_interpreters properly without GIL (pytho…
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo authored and picnixz committed Jun 19, 2024
1 parent a1a1686 commit 145a126
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Lib/test/test_interpreters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
from test.support import load_package_tests, Py_GIL_DISABLED
import unittest

if not Py_GIL_DISABLED:
def load_tests(*args):
return load_package_tests(os.path.dirname(__file__), *args)
if Py_GIL_DISABLED:
raise unittest.SkipTest("GIL disabled")

def load_tests(*args):
return load_package_tests(os.path.dirname(__file__), *args)

0 comments on commit 145a126

Please sign in to comment.