[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:
Miss Islington (bot) 2024-06-18 18:05:30 +02:00 committed by GitHub
parent 1ce5984961
commit 07145ddf19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

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)