summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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