From 4f4973d740839757e888c854a1994a64cb900d7b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:46:29 +0200 Subject: [3.13] gh-120659: Skip `test_freethreading` with GIL (GH-120660) (#120694) gh-120659: Skip `test_freethreading` with GIL (GH-120660) (cherry picked from commit 360f14a493d8461d42dc646be40b4b6fb20db57a) Co-authored-by: Nice Zombies --- Lib/test/test_free_threading/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_free_threading/__init__.py b/Lib/test/test_free_threading/__init__.py index 9a89d27..34e1ad3 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) -- cgit v0.12