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 0afc8ee commit 8f73fe9Copy full SHA for 8f73fe9
tests/test_simple.py
@@ -10,6 +10,7 @@
10
ctx = zmq.Context()
11
class TestRecv(unittest.TestCase):
12
def test_sndrcv(self):
13
+ """send an array"""
14
A = np.array([1,2,3])
15
req = ctx.socket(zmq.REQ)
16
req.connect('tcp://localhost:9002')
@@ -41,10 +42,8 @@ def test_missing(self):
41
42
B, metadata = mmi.recv_array(rep)
43
numpy.testing.assert_array_equal(A, B)
44
-
45
46
def test_missing_scalar(self):
47
- """send an array with missing data"""
+ """send an array with missing data as a scalar"""
48
A = np.array([1, 2, 3, 4])
49
A = np.ma.masked_less(A, 2)
50
# test if it works if we use a numpy scalar
0 commit comments