https://github.com/python/cpython/commit/07145ddf19bc423e83d0290095833bc95861fc2f commit: 07145ddf19bc423e83d0290095833bc95861fc2f branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: ericsnowcurrently <[email protected]> date: 2024-06-18T16:05:30Z summary:
[3.13] gh-117953: Skip `test_interpreters` properly without GIL (gh-120707) (cherry picked from commit 1035fe0cfbeee23f61aed3332ebbae854e5da800, AKA gh-120689) Co-authored-by: Nice Zombies <[email protected]> files: M Lib/test/test_interpreters/__init__.py diff --git a/Lib/test/test_interpreters/__init__.py b/Lib/test/test_interpreters/__init__.py index 52ff553f60d0d7..e3d189c4efcd27 100644 --- a/Lib/test/test_interpreters/__init__.py +++ b/Lib/test/test_interpreters/__init__.py @@ -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) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
