[Scipy-svn] r2300 - trunk/Lib/io/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Mon Oct 30 18:12:38 EST 2006
Author: matthew.brett at gmail.com
Date: 2006-10-30 17:12:34 -0600 (Mon, 30 Oct 2006)
New Revision: 2300
Modified:
trunk/Lib/io/tests/test_mio.py
Log:
Changed test for object to not expect 1 as return value
Modified: trunk/Lib/io/tests/test_mio.py
===================================================================
--- trunk/Lib/io/tests/test_mio.py 2006-10-25 17:21:48 UTC (rev 2299)
+++ trunk/Lib/io/tests/test_mio.py 2006-10-30 23:12:34 UTC (rev 2300)
@@ -31,7 +31,7 @@
# object array is returned from cell array in mat file
typex = type(expected)
typac = type(actual)
- if isinstance(expected, ndarray) and expected.dtype.hasobject == 1:
+ if isinstance(expected, ndarray) and expected.dtype.hasobject:
assert typex is typac, "Different types at %s" % label
assert len(expected) == len(actual), "Different list lengths at %s" % label
for i, ev in enumerate(expected):
@@ -232,8 +232,8 @@
name = case['name'] + '_round_trip'
expected = case['expected']
exec 'check_%s = _make_rt_check_case(name, expected)' % name
-
+
if __name__ == "__main__":
ScipyTest().run()
More information about the Scipy-svn
mailing list