gh-117953: Skip test_interpreters properly without GIL (#120689)

This commit is contained in:
Nice Zombies 2024-06-18 17:22:24 +02:00 committed by GitHub
parent f869bcfc5b
commit 1035fe0cfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)