Commit b5ace468 authored by Julian Taylor's avatar Julian Taylor

noncopysend-test.patch: avoid uninitialized values in tests

parent 2d1226fd
......@@ -3,6 +3,7 @@ pyzmq (13.1.0-1) unstable; urgency=low
* New upstream release built with zeromq3 (Closes: #698830)
- drop all patches
* workaround-gevent.patch: workaround issue with gevent < 1.0
* noncopysend-test.patch: avoid uninitialized values in tests
-- Julian Taylor <jtaylor.debian@googlemail.com> Sun, 12 May 2013 13:59:20 +0200
......
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
@@ -321,10 +321,8 @@ class TestFrame(BaseZMQTestCase):
for i in range(1,len(shapes)+1):
shape = shapes[:i]
for dt in dtypes:
- A = numpy.ndarray(shape, dtype=dt)
- while not (A < 1e400).all():
- # 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)
workaround-gevent.patch
noncopysend-test.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment