summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-30 04:23:30 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-30 04:23:30 +0000
commit4556166f8b5bf0b0c06ef8574268af42e8800d2f (patch)
tree480e1fa1226d593549e53c757ac8ff5ee409bbf4 /numpy
parentb85b457d472c24efcd5d57c03a74ac1ac06a705d (diff)
parent9c604cf503061e7bfd8ae6ca81edb30559a2777c (diff)
downloadnumpy-4556166f8b5bf0b0c06ef8574268af42e8800d2f.tar.gz
Merged revisions 6244 via svnmerge from
http://svn.scipy.org/svn/numpy/trunk ........ r6244 | cdavid | 2008-12-30 13:20:48 +0900 (Tue, 30 Dec 2008) | 1 line Fix test for print: forgot to make sure the value is a float before comparing it. ........
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_print.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/tests/test_print.py b/numpy/core/tests/test_print.py
index 0490978ff..186b54ed1 100644
--- a/numpy/core/tests/test_print.py
+++ b/numpy/core/tests/test_print.py
@@ -60,6 +60,7 @@ def test_complex_types():
# print tests
def check_float_type_print(tp):
for x in [0, 1,-1, 1e10, 1e20, float('inf'), float('nan'), float('-inf')] :
+ x = float(x)
file = StringIO()
file_tp = StringIO()
stdout = sys.stdout