Skip to content

Commit 8f73fe9

Browse files
author
Fedor Baart
committed
comments
1 parent 0afc8ee commit 8f73fe9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_simple.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ctx = zmq.Context()
1111
class TestRecv(unittest.TestCase):
1212
def test_sndrcv(self):
13+
"""send an array"""
1314
A = np.array([1,2,3])
1415
req = ctx.socket(zmq.REQ)
1516
req.connect('tcp://localhost:9002')
@@ -41,10 +42,8 @@ def test_missing(self):
4142
B, metadata = mmi.recv_array(rep)
4243
numpy.testing.assert_array_equal(A, B)
4344

44-
45-
4645
def test_missing_scalar(self):
47-
"""send an array with missing data"""
46+
"""send an array with missing data as a scalar"""
4847
A = np.array([1, 2, 3, 4])
4948
A = np.ma.masked_less(A, 2)
5049
# test if it works if we use a numpy scalar

0 commit comments

Comments
 (0)