mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #28484: Skip tests if GIL is not used or multithreading is disabled
This commit is contained in:
parent
10f29c9037
commit
56b2cf5e85
2 changed files with 7 additions and 1 deletions
|
|
@ -696,7 +696,12 @@ class ArgsTestCase(BaseTestCase):
|
|||
code = TEST_INTERRUPTED
|
||||
test = self.create_test("sigint", code=code)
|
||||
|
||||
for multiprocessing in (False, True):
|
||||
try:
|
||||
import threading
|
||||
tests = (False, True)
|
||||
except ImportError:
|
||||
tests = (False,)
|
||||
for multiprocessing in tests:
|
||||
if multiprocessing:
|
||||
args = ("--slowest", "-j2", test)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue