summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_multiarray.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index a6d669d25..4898a21c9 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -508,6 +508,7 @@ class TestFromToFile(NumpyTestCase):
f = tempfile.TemporaryFile()
self.x.tofile(f)
+ f.flush()
f.seek(0)
y = np.fromfile(f,dtype=self.dtype)
assert_array_equal(y,self.x.flat)