Skip to content

Commit fe10387

Browse files
committed
Skip test_interpreters on Free Threading
1 parent 9367f53 commit fe10387

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎Lib/test/libregrtest/skipped.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
if sys.platform in ("win32", "cygwin"):
7070
EXPECTED_SKIP.add('test_multiprocessing_forkserver')
7171

72+
if support.Py_GIL_DISABLED:
73+
EXPECTED_SKIP.add('test_interpreters')
74+
else:
75+
EXPECTED_SKIP.add('test_free_threading')
76+
7277
if not hasattr(os, 'startfile'):
7378
EXPECTED_SKIP.add('test_startfile')
7479
if not hasattr(os, "openpty"):
@@ -82,8 +87,6 @@
8287
EXPECTED_SKIP.add('test_android')
8388
if not support.is_apple:
8489
EXPECTED_SKIP.add('test_apple')
85-
if not support.Py_GIL_DISABLED:
86-
EXPECTED_SKIP.add('test_free_threading')
8790

8891
if not support.has_socket_support or IS_WASI:
8992
# need socket support

0 commit comments

Comments
 (0)