Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r68419:83fa1f936f1c
Date: 2013-12-13 14:50 -0500
http://bitbucket.org/pypy/pypy/changeset/83fa1f936f1c/

Log:    cleanup

diff --git a/pypy/module/micronumpy/interp_boxes.py 
b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -326,8 +326,7 @@
     pass
 
 class W_IntegerBox(W_NumberBox):
-    def int_w(self, space):
-        return space.int_w(self.descr_int(space))
+    pass
 
 class W_SignedIntegerBox(W_IntegerBox):
     pass
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
@@ -1958,11 +1958,13 @@
         assert a.itemsize == 3
         a = array(3.1415).astype('S3').dtype
         assert a.itemsize == 3
-        try:
+
+        import sys
+        if '__pypy__' not in sys.builtin_module_names:
             a = array(['1', '2','3']).astype(float)
             assert a[2] == 3.0
-        except NotImplementedError:
-            skip('astype("float") not implemented for str arrays')
+        else:
+            raises(NotImplementedError, array(['1', '2', '3']).astype, float)
 
     def test_base(self):
         from numpypy import array
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to