diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-30 04:20:48 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-30 04:20:48 +0000 |
commit | 9c604cf503061e7bfd8ae6ca81edb30559a2777c (patch) | |
tree | deb08a194e771fe8cda67c399183fe806c4df4c8 /numpy | |
parent | ffbeb6e9b3eeb6eadac1407c908ffb510e20a98d (diff) | |
download | numpy-9c604cf503061e7bfd8ae6ca81edb30559a2777c.tar.gz |
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.py | 1 |
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 |