mirror of https://github.com/python/cpython
[3.13] gh-117953: Skip `test_interpreters` properly without GIL (gh-120707)
(cherry picked from commit 1035fe0cfb
, AKA gh-120689)
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
This commit is contained in:
parent
1ce5984961
commit
07145ddf19
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue