Author: Brian Kearns <[email protected]>
Branch:
Changeset: r68515:7c8c667c0851
Date: 2013-12-20 15:12 -0500
http://bitbucket.org/pypy/pypy/changeset/7c8c667c0851/
Log: test this too
diff --git a/pypy/module/micronumpy/test/test_numarray.py
b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -3048,8 +3048,10 @@
spaceconfig = dict(usemodules=["micronumpy", "struct", "binascii"])
def test_zeros(self):
- from numpypy import zeros
+ from numpypy import zeros, void
a = zeros((), dtype=[('x', int), ('y', float)])
+ assert type(a[()]) is void
+ assert type(a.item()) is tuple
assert a[()]['x'] == 0
assert a[()]['y'] == 0
assert a.shape == ()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit