Author: Romain Guillebert <[email protected]>
Branch: numpy-subarrays
Changeset: r63988:eae319856642
Date: 2013-05-11 18:31 +0200
http://bitbucket.org/pypy/pypy/changeset/eae319856642/

Log:    Add more checks

diff --git a/pypy/module/micronumpy/test/test_dtypes.py 
b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -794,10 +794,13 @@
         from numpypy import dtype
         d = dtype([("x", "float", (2,)), ("y", "int", (2,))])
         assert d.itemsize == 32
+        assert d.name == "void256"
         keys = d.fields.keys()
         assert "x" in keys
         assert "y" in keys
         assert d["x"].shape == (2,)
+        assert d["x"].itemsize == 16
+
 
 class AppTestNotDirect(BaseNumpyAppTest):
     def setup_class(cls):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to