From fd2a35c6df4cda0a3fe9f43dae455571cd259abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20N=C3=A1rai?= Date: Thu, 23 May 2024 18:56:46 +0200 Subject: [PATCH] Fix in test_matlab.py --- nipype/interfaces/tests/test_matlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nipype/interfaces/tests/test_matlab.py b/nipype/interfaces/tests/test_matlab.py index 0150b64eb5..d028dd3059 100644 --- a/nipype/interfaces/tests/test_matlab.py +++ b/nipype/interfaces/tests/test_matlab.py @@ -102,7 +102,7 @@ def test_run_interface(tmpdir): # bypasses ubuntu dash issue mc = mlab.MatlabCommand(script="foo;", paths=[tmpdir.strpath], mfile=True) assert not os.path.exists(default_script_file), "scriptfile should not exist 4." - with pytest.raises(OSError): + with pytest.raises(RuntimeError): mc.run() assert os.path.exists(default_script_file), "scriptfile should exist 4." if os.path.exists(default_script_file): # cleanup