summaryrefslogtreecommitdiff
path: root/debian/patches/noncopysend-test.patch
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2014-08-11 16:33:29 -0400
committerMicah Anderson <micah@riseup.net>2014-08-11 16:33:29 -0400
commitcce638a8adf4e045ca5505afea4bda57753c31dd (patch)
treeb5e139d3359ac5b8c7b1afa8acbb1b5b6051c626 /debian/patches/noncopysend-test.patch
initial import of debian package
Diffstat (limited to 'debian/patches/noncopysend-test.patch')
-rw-r--r--debian/patches/noncopysend-test.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/noncopysend-test.patch b/debian/patches/noncopysend-test.patch
new file mode 100644
index 0000000..4880ae1
--- /dev/null
+++ b/debian/patches/noncopysend-test.patch
@@ -0,0 +1,20 @@
+Description: don't use uninitialized memory for test
+ the memory could contain signalling NaN which crashes sparc python
+Author: Julian Taylor <jtaylor.debian@googlemail.com>
+Forwarded: not-needed
+
+--- a/zmq/tests/test_message.py
++++ b/zmq/tests/test_message.py
+@@ -324,10 +324,8 @@ class TestFrame(BaseZMQTestCase):
+ for i in range(1,len(shapes)+1):
+ shape = shapes[:i]
+ for dt in dtypes:
+- A = numpy.empty(shape, dtype=dt)
+- while numpy.isnan(A).any():
+- # don't let nan sneak in
+- A = numpy.ndarray(shape, dtype=dt)
++ A = numpy.random.uniform(-10000000,
++ 1000000, size=shape).astype(dt)
+ a.send(A, copy=False)
+ msg = b.recv(copy=False)
+