Author: Brian Kearns <[email protected]>
Branch: remove-numpypy
Changeset: r67722:fb7ee14d8205
Date: 2013-10-29 21:43 -0400
http://bitbucket.org/pypy/pypy/changeset/fb7ee14d8205/
Log: fix last failing test in micronumpy
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
@@ -937,7 +937,11 @@
def test_typeinfo(self):
from numpypy import void, number, int64, bool_, complex64, complex128,
float16
- from numpypy.core.multiarray import typeinfo
+ try:
+ from numpy.core.multiarray import typeinfo
+ except ImportError:
+ # running on dummy module
+ from numpypy import typeinfo
assert typeinfo['Number'] == number
assert typeinfo['LONGLONG'] == ('q', 9, 64, 8, 9223372036854775807L,
-9223372036854775808L, int64)
assert typeinfo['VOID'] == ('V', 20, 0, 1, void)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit