Skip to content

Commit

Permalink
TST: mark io.savemat test with OrderedDict as knownfail if it fails. …
Browse files Browse the repository at this point in the history
…See #1874
  • Loading branch information
rgommers committed Mar 28, 2013
1 parent 67c700b commit 48fe2d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scipy/io/matlab/tests/test_mio.py
Expand Up @@ -30,6 +30,7 @@
assert_equal, \
assert_raises, run_module_suite
from numpy.testing.utils import WarningManager
from numpy.testing.noseclasses import KnownFailureTest

from nose.tools import assert_true

Expand Down Expand Up @@ -587,7 +588,10 @@ def test_save_dict():
vals = loadmat(stream)['dict']
assert_equal(set(vals.dtype.names), set(['a', 'b']))
if is_ordered: # Input was ordered, output in ab order
assert_array_equal(vals, ab_exp)
try:
assert_array_equal(vals, ab_exp)
except AssertionError:
raise KnownFailureTest # see ticket 1874
else: # Not ordered input, either order output
if vals.dtype.names[0] == 'a':
assert_array_equal(vals, ab_exp)
Expand Down

0 comments on commit 48fe2d4

Please sign in to comment.