Author: mattip <[email protected]>
Branch: numpypy-complex2
Changeset: r57304:c3d0013616de
Date: 2012-09-11 19:41 +0300
http://bitbucket.org/pypy/pypy/changeset/c3d0013616de/
Log: fix failing test, probably is still incorrect for all platforms
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
@@ -497,7 +497,6 @@
raises(TypeError, lambda: (1, 2, 3)[float64(1)])
def test_int(self):
- import sys
from _numpypy import int32, int64, int_
assert issubclass(int_, int)
if sys.maxint == (1<<31) - 1:
@@ -509,15 +508,14 @@
def test_various_types(self):
import _numpypy as numpy
- import sys
assert numpy.int16 is numpy.short
assert numpy.int8 is numpy.byte
assert numpy.bool_ is numpy.bool8
if sys.maxint == (1 << 63) - 1:
- assert numpy.intp is numpy.int64
+ assert '%r' % numpy.intp == '%r' % numpy.int64
else:
- assert numpy.intp is numpy.int32
+ assert '%r' % numpy.intp == '%r' % numpy.int32
def test_mro(self):
import _numpypy as numpy
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit