https://github.com/python/cpython/commit/360f14a493d8461d42dc646be40b4b6fb20db57a
commit: 360f14a493d8461d42dc646be40b4b6fb20db57a
branch: main
author: Nice Zombies <[email protected]>
committer: vstinner <[email protected]>
date: 2024-06-18T15:56:20+02:00
summary:

gh-120659: Skip `test_freethreading` with GIL (#120660)

files:
M Lib/test/test_free_threading/__init__.py

diff --git a/Lib/test/test_free_threading/__init__.py 
b/Lib/test/test_free_threading/__init__.py
index 9a89d27ba9f979..34e1ad30e11097 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)

_______________________________________________
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]

Reply via email to