Skip to content

Commit b330385

Browse files
adamnaraieffigies
authored andcommitted
Fix in test_matlab.py
1 parent df52dc8 commit b330385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/tests/test_matlab.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_run_interface(tmpdir):
102102
# bypasses ubuntu dash issue
103103
mc = mlab.MatlabCommand(script="foo;", paths=[tmpdir.strpath], mfile=True)
104104
assert not os.path.exists(default_script_file), "scriptfile should not exist 4."
105-
with pytest.raises(OSError):
105+
with pytest.raises(RuntimeError):
106106
mc.run()
107107
assert os.path.exists(default_script_file), "scriptfile should exist 4."
108108
if os.path.exists(default_script_file): # cleanup

0 commit comments

Comments
 (0)