diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-06 23:10:18 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-03-06 23:10:18 +0000 |
commit | c4b134481d0a6f030ce084b2c6a9c7f4929dfb1c (patch) | |
tree | 8cb6305788ab9cdbedfabf5d0155fc85df559a48 /dev-python/pyzmq/files | |
parent | Fix slot-deps on gtk+ and other libs (diff) | |
download | gentoo-2-c4b134481d0a6f030ce084b2c6a9c7f4929dfb1c.tar.gz gentoo-2-c4b134481d0a6f030ce084b2c6a9c7f4929dfb1c.tar.bz2 gentoo-2-c4b134481d0a6f030ce084b2c6a9c7f4929dfb1c.zip |
Fix tests with Python 3.1.
(Portage version: 2.2.0_alpha26_p7/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyzmq/files')
-rw-r--r-- | dev-python/pyzmq/files/pyzmq-2.0.10.1-python-3.1.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-python/pyzmq/files/pyzmq-2.0.10.1-python-3.1.patch b/dev-python/pyzmq/files/pyzmq-2.0.10.1-python-3.1.patch new file mode 100644 index 000000000000..3d56ab43e9e0 --- /dev/null +++ b/dev-python/pyzmq/files/pyzmq-2.0.10.1-python-3.1.patch @@ -0,0 +1,11 @@ +--- zmq/tests/test_message.py ++++ zmq/tests/test_message.py +@@ -256,7 +256,7 @@ + import numpy + except ImportError: + raise SkipTest("NumPy unavailable") +- shapes = map(numpy.random.randint, [2]*5,[16]*5) ++ shapes = list(map(numpy.random.randint, [2]*5,[16]*5)) + for i in range(1,len(shapes)+1): + shape = shapes[:i] + A = numpy.random.random(shape) |