Author: Brian Kearns <[email protected]>
Branch:
Changeset: r68492:cee13fb60662
Date: 2013-12-19 16:38 -0500
http://bitbucket.org/pypy/pypy/changeset/cee13fb60662/
Log: the is comparison is important in this test, put it back
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
@@ -1407,11 +1407,11 @@
for dt in ['bool', 'int8', 'uint8', 'int16', 'uint16']:
a = array([True, False], dtype=dt)
assert a.prod() == 0
- assert a.prod().dtype == dtype('uint' if dt[0] == 'u' else 'int')
+ assert a.prod().dtype is dtype('uint' if dt[0] == 'u' else 'int')
for dt in ['l', 'L', 'q', 'Q', 'e', 'f', 'd', 'F', 'D']:
a = array([True, False], dtype=dt)
assert a.prod() == 0
- assert a.prod().dtype == dtype(dt)
+ assert a.prod().dtype is dtype(dt)
def test_max(self):
from numpypy import array, zeros
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit