Skip to content

Commit 6b6f52d

Browse files
committed
Run test_interpreters on the free-threaded build.
1 parent e3d9bd6 commit 6b6f52d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import os
2-
from test.support import load_package_tests, Py_GIL_DISABLED
3-
import unittest
4-
5-
if Py_GIL_DISABLED:
6-
raise unittest.SkipTest("GIL disabled")
2+
from test.support import load_package_tests
73

84
def load_tests(*args):
95
return load_package_tests(os.path.dirname(__file__), *args)

Lib/test/test_interpreters/test_channels.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
import unittest
66
import time
77

8-
from test.support import import_helper
8+
from test.support import import_helper, Py_GIL_DISABLED
99
# Raise SkipTest if subinterpreters not supported.
1010
_channels = import_helper.import_module('_interpchannels')
1111
from concurrent import interpreters
1212
from test.support import channels
1313
from .utils import _run_output, TestBase
1414

1515

16+
if Py_GIL_DISABLED:
17+
raise unittest.SkipTest("channels aren't completely thread-safe")
18+
1619
class LowLevelTests(TestBase):
1720

1821
# The behaviors in the low-level module is important in as much

0 commit comments

Comments
 (0)