diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2007-12-30 17:57:53 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2007-12-30 17:57:53 +0000 |
commit | 1b629358028111f9b08433d0bf906bbd0cdc0f02 (patch) | |
tree | 226ae8e3c883bf5731844b4397caa4fe1c9e21ee /numpy | |
parent | 676d5b548cfda3b4c1723df73d4e3b27720fa33c (diff) | |
download | numpy-1b629358028111f9b08433d0bf906bbd0cdc0f02.tar.gz |
Fix test_file under Windows.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_multiarray.py | 1 |
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) |