Author: Christoph Gerum <[email protected]>
Branch: numpy-ufunc-trig
Changeset: r46075:c823c8aa0b57
Date: 2011-07-29 01:00 +0200
http://bitbucket.org/pypy/pypy/changeset/c823c8aa0b57/
Log: numpy: Added inf and -inf to test of arctan ufunc
diff --git a/pypy/module/micronumpy/test/test_ufuncs.py
b/pypy/module/micronumpy/test/test_ufuncs.py
--- a/pypy/module/micronumpy/test/test_ufuncs.py
+++ b/pypy/module/micronumpy/test/test_ufuncs.py
@@ -240,7 +240,7 @@
import math
from numpy import array, arctan
- a = array([-3, -2, -1, 0, 1, 2, 3])
+ a = array([-3, -2, -1, 0, 1, 2, 3, float('inf'), float('-inf')])
b = arctan(a)
for i in range(len(a)):
assert b[i] == math.atan(a[i])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit