Skip to content

Commit 8416398

Browse files
committed
skip contiguous test on Python 2
since we skip the check there, too
1 parent 82b5d2b commit 8416398

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyter_client/tests/test_session.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import hmac
77
import os
8+
import sys
89
import uuid
910
from datetime import datetime
1011

@@ -127,8 +128,9 @@ def test_send(self):
127128

128129
# buffers must be contiguous
129130
buf = memoryview(os.urandom(16))
130-
with self.assertRaises(ValueError):
131-
self.session.send(A, msg, ident=b'foo', buffers=[buf[::2]])
131+
if sys.version_info >= (3,3):
132+
with self.assertRaises(ValueError):
133+
self.session.send(A, msg, ident=b'foo', buffers=[buf[::2]])
132134

133135
A.close()
134136
B.close()

0 commit comments

Comments
 (0)