Skip to content

Commit b9e41ca

Browse files
committed
try to skip all tests
1 parent 2264afd commit b9e41ca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/unit/backend/test_interactive_serial.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_main_as_thread(self):
5959
socket.close()
6060
context.term()
6161

62+
@unittest.skipIf(not sys._is_gil_enabled(), "Requires GIL to run")
6263
def test_main_as_thread_error(self):
6364
context = zmq.Context()
6465
socket = context.socket(zmq.PAIR)
@@ -74,6 +75,7 @@ def test_main_as_thread_error(self):
7475
socket.close()
7576
context.term()
7677

78+
@unittest.skipIf(not sys._is_gil_enabled(), "Requires GIL to run")
7779
def test_main_as_thread_init_error(self):
7880
context = zmq.Context()
7981
socket = context.socket(zmq.PAIR)
@@ -90,6 +92,7 @@ def test_main_as_thread_init_error(self):
9092
socket.close()
9193
context.term()
9294

95+
@unittest.skipIf(not sys._is_gil_enabled(), "Requires GIL to run")
9396
def test_submit_as_thread(self):
9497
context = zmq.Context()
9598
socket = context.socket(zmq.PAIR)
@@ -103,6 +106,7 @@ def test_submit_as_thread(self):
103106
socket.close()
104107
context.term()
105108

109+
@unittest.skipIf(not sys._is_gil_enabled(), "Requires GIL to run")
106110
def test_submit_as_thread_error(self):
107111
context = zmq.Context()
108112
socket = context.socket(zmq.PAIR)

0 commit comments

Comments
 (0)