summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_format.py
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2015-12-19 16:49:35 -0800
committergfyoung <gfyoung17@gmail.com>2015-12-19 16:50:09 -0800
commit8bc592fabf4a2b0bc76db996b1523330ba095be3 (patch)
treec8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /numpy/lib/tests/test_format.py
parente2bdaccba1a8691f9223b059b981b2890bb13b09 (diff)
downloadnumpy-8bc592fabf4a2b0bc76db996b1523330ba095be3.tar.gz
DOC: Use print only as function when print_function is imported from __future__
Closes gh-6863.
Diffstat (limited to 'numpy/lib/tests/test_format.py')
-rw-r--r--numpy/lib/tests/test_format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index 1bf65fa61..a091ef5b3 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -112,7 +112,7 @@ Test the header writing.
>>> for arr in basic_arrays + record_arrays:
... f = BytesIO()
... format.write_array_header_1_0(f, arr) # XXX: arr is not a dict, items gets called on it
- ... print repr(f.getvalue())
+ ... print(repr(f.getvalue()))
...
"F\x00{'descr': '|u1', 'fortran_order': False, 'shape': (0,)} \n"
"F\x00{'descr': '|u1', 'fortran_order': False, 'shape': ()} \n"