From: Nice Zombies Date: Tue, 18 Jun 2024 13:56:20 +0000 (+0200) Subject: gh-120659: Skip `test_freethreading` with GIL (#120660) X-Git-Tag: v3.14.0a1~1435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=360f14a493d8461d42dc646be40b4b6fb20db57a;p=thirdparty%2FPython%2Fcpython.git gh-120659: Skip `test_freethreading` with GIL (#120660) --- diff --git a/Lib/test/test_free_threading/__init__.py b/Lib/test/test_free_threading/__init__.py index 9a89d27ba9f9..34e1ad30e110 100644 --- a/Lib/test/test_free_threading/__init__.py +++ b/Lib/test/test_free_threading/__init__.py @@ -1,7 +1,11 @@ import os +import unittest from test import support +if not support.Py_GIL_DISABLED: + raise unittest.SkipTest("GIL enabled") + def load_tests(*args): return support.load_package_tests(os.path.dirname(__file__), *args)