[Python-modules-commits] r24327 - in packages/pyzmq/trunk/debian (3 files)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Sun May 12 21:53:01 UTC 2013
Date: Sunday, May 12, 2013 @ 21:52:59
Author: jtaylor-guest
Revision: 24327
noncopysend-test.patch: avoid uninitialized values in tests
Added:
packages/pyzmq/trunk/debian/patches/noncopysend-test.patch
Modified:
packages/pyzmq/trunk/debian/changelog
packages/pyzmq/trunk/debian/patches/series
Modified: packages/pyzmq/trunk/debian/changelog
===================================================================
--- packages/pyzmq/trunk/debian/changelog 2013-05-12 21:52:53 UTC (rev 24326)
+++ packages/pyzmq/trunk/debian/changelog 2013-05-12 21:52:59 UTC (rev 24327)
@@ -3,6 +3,7 @@
* 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 at googlemail.com> Sun, 12 May 2013 13:59:20 +0200
Added: packages/pyzmq/trunk/debian/patches/noncopysend-test.patch
===================================================================
--- packages/pyzmq/trunk/debian/patches/noncopysend-test.patch (rev 0)
+++ packages/pyzmq/trunk/debian/patches/noncopysend-test.patch 2013-05-12 21:52:59 UTC (rev 24327)
@@ -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 at 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)
+
Modified: packages/pyzmq/trunk/debian/patches/series
===================================================================
--- packages/pyzmq/trunk/debian/patches/series 2013-05-12 21:52:53 UTC (rev 24326)
+++ packages/pyzmq/trunk/debian/patches/series 2013-05-12 21:52:59 UTC (rev 24327)
@@ -1 +1,2 @@
workaround-gevent.patch
+noncopysend-test.patch
More information about the Python-modules-commits
mailing list