[Numpy-svn] r4672 - trunk/numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Dec 30 12:58:08 EST 2007


Author: stefan
Date: 2007-12-30 11:57:53 -0600 (Sun, 30 Dec 2007)
New Revision: 4672

Modified:
   trunk/numpy/core/tests/test_multiarray.py
Log:
Fix test_file under Windows.


Modified: trunk/numpy/core/tests/test_multiarray.py
===================================================================
--- trunk/numpy/core/tests/test_multiarray.py	2007-12-30 17:32:49 UTC (rev 4671)
+++ trunk/numpy/core/tests/test_multiarray.py	2007-12-30 17:57:53 UTC (rev 4672)
@@ -508,6 +508,7 @@
             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)




More information about the Numpy-svn mailing list