We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aca5f70 commit 6674afaCopy full SHA for 6674afa
jupyter_client/tests/test_session.py
@@ -8,6 +8,10 @@
8
import sys
9
import uuid
10
from datetime import datetime
11
+try:
12
+ from unittest import mock
13
+except ImportError:
14
+ import mock
15
16
import pytest
17
@@ -34,6 +38,14 @@ def setUp(self):
34
38
self.session = ss.Session()
35
39
36
40
41
+@pytest.fixture
42
+def no_copy_threshold():
43
+ """Disable zero-copy optimizations in pyzmq >= 17"""
44
+ with mock.patch.object(zmq, 'COPY_THRESHOLD', 1):
45
+ yield
46
+
47
48
+@pytest.mark.usefixtures('no_copy_threshold')
37
49
class TestSession(SessionTestCase):
50
51
def test_msg(self):
0 commit comments