[Scipy-svn] r7065 - branches/0.9.x/scipy/io/matlab/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Sun Jan 16 10:23:02 EST 2011


Author: rgommers
Date: 2011-01-16 09:22:54 -0600 (Sun, 16 Jan 2011)
New Revision: 7065

Modified:
   branches/0.9.x/scipy/io/matlab/tests/test_mio.py
Log:
TST: fix matlab.savemat test to not emit FutureWarning.

(backport of r7057)

Modified: branches/0.9.x/scipy/io/matlab/tests/test_mio.py
===================================================================
--- branches/0.9.x/scipy/io/matlab/tests/test_mio.py	2011-01-16 15:21:54 UTC (rev 7064)
+++ branches/0.9.x/scipy/io/matlab/tests/test_mio.py	2011-01-16 15:22:54 UTC (rev 7065)
@@ -358,16 +358,15 @@
         fname = pjoin(tmpdir, "a.mat")
 
         # Check that file is not left open
-        savemat(fname, x)
+        savemat(fname, x, oned_as='row')
         os.unlink(fname)
-        savemat(fname, x)
-
+        savemat(fname, x, oned_as='row')
         loadmat(fname)
         os.unlink(fname)
 
         # Check that stream is left open
         f = open(fname, 'wb')
-        savemat(f, x)
+        savemat(f, x, oned_as='column')
         f.seek(0)
         f.close()
 




More information about the Scipy-svn mailing list