mirror of
https://github.com/python/cpython.git
synced 2025-09-10 02:36:56 +00:00
gh-117953: Skip test_interpreters
properly without GIL (#120689)
This commit is contained in:
parent
f869bcfc5b
commit
1035fe0cfb
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
||||||
import os
|
import os
|
||||||
from test.support import load_package_tests, Py_GIL_DISABLED
|
from test.support import load_package_tests, Py_GIL_DISABLED
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
if Py_GIL_DISABLED:
|
||||||
|
raise unittest.SkipTest("GIL disabled")
|
||||||
|
|
||||||
if not Py_GIL_DISABLED:
|
|
||||||
def load_tests(*args):
|
def load_tests(*args):
|
||||||
return load_package_tests(os.path.dirname(__file__), *args)
|
return load_package_tests(os.path.dirname(__file__), *args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue