Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Lib/test/test_interpreters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import os
from test.support import load_package_tests, Py_GIL_DISABLED
import unittest

if Py_GIL_DISABLED:
raise unittest.SkipTest("GIL disabled")
from test.support import load_package_tests

def load_tests(*args):
return load_package_tests(os.path.dirname(__file__), *args)
5 changes: 4 additions & 1 deletion Lib/test/test_interpreters/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
import unittest
import time

from test.support import import_helper
from test.support import import_helper, Py_GIL_DISABLED
# Raise SkipTest if subinterpreters not supported.
_channels = import_helper.import_module('_interpchannels')
from concurrent import interpreters
from test.support import channels
from .utils import _run_output, TestBase


if Py_GIL_DISABLED:
raise unittest.SkipTest("channels aren't completely thread-safe")

class LowLevelTests(TestBase):

# The behaviors in the low-level module is important in as much
Expand Down
Loading