Skip to content

Commit a6ffbd0

Browse files
authored
Merge pull request #349 from minrk/zmq-mock
fix testing patch for pyzmq < 17
2 parents d1b08d6 + 2840d26 commit a6ffbd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_client/tests/test_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def setUp(self):
4141
@pytest.fixture
4242
def no_copy_threshold():
4343
"""Disable zero-copy optimizations in pyzmq >= 17"""
44-
with mock.patch.object(zmq, 'COPY_THRESHOLD', 1):
44+
with mock.patch.object(zmq, 'COPY_THRESHOLD', 1, create=True):
4545
yield
4646

4747

0 commit comments

Comments
 (0)