]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-120659: Skip `test_freethreading` with GIL (GH-120660) (#120694)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 18 Jun 2024 14:46:29 +0000 (16:46 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Jun 2024 14:46:29 +0000 (14:46 +0000)
gh-120659: Skip `test_freethreading` with GIL (GH-120660)
(cherry picked from commit 360f14a493d8461d42dc646be40b4b6fb20db57a)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Lib/test/test_free_threading/__init__.py

index 9a89d27ba9f979d0a5ea25d7e10c3c6a5aab7d28..34e1ad30e11097e409d58e677b37c5965ad4313c 100644 (file)
@@ -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)