[Scipy-svn] r2327 - trunk/Lib/io/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Tue Nov 21 17:08:16 EST 2006
Author: matthew.brett at gmail.com
Date: 2006-11-21 16:08:13 -0600 (Tue, 21 Nov 2006)
New Revision: 2327
Modified:
trunk/Lib/io/tests/test_mio.py
Log:
Use savemat for round trip tests
Modified: trunk/Lib/io/tests/test_mio.py
===================================================================
--- trunk/Lib/io/tests/test_mio.py 2006-11-21 22:06:52 UTC (rev 2326)
+++ trunk/Lib/io/tests/test_mio.py 2006-11-21 22:08:13 UTC (rev 2327)
@@ -90,8 +90,7 @@
def _make_rt_check_case(name, expected):
def cc(self):
mat_stream = StringIO()
- MW = MatFile4Writer(mat_stream)
- MW.put_variables(expected)
+ savemat(mat_stream, expected)
mat_stream.seek(0)
self._check_case(name, [mat_stream], expected)
cc.__doc__ = "check loadmat case %s" % name
More information about the Scipy-svn
mailing list