Skip to content

Commit c4a94ed

Browse files
committed
Check for interpreter lock
1 parent d2f7512 commit c4a94ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/backend/test_interactive_serial.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from threading import Thread
22
import unittest
3+
import sys
34

45
import cloudpickle
56
import zmq
@@ -88,6 +89,7 @@ def test_main_as_thread_init_error(self):
8889
socket.close()
8990
context.term()
9091

92+
@unittest.skipIf(not sys._is_gil_enabled(), "Requires GIL to run")
9193
def test_submit_as_thread(self):
9294
context = zmq.Context()
9395
socket = context.socket(zmq.PAIR)

0 commit comments

Comments
 (0)