Skip to content

Commit 73e4d9a

Browse files
committed
FIX: OSError -> IOError
1 parent f8472df commit 73e4d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/base/tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def test_CommandLine_prefix(tmpdir):
494494
os.chmod(script_path, 0o755)
495495

496496
ci = nib.CommandLine(command=script_name)
497-
with pytest.raises(OSError):
497+
with pytest.raises(IOError):
498498
ci.run()
499499

500500
class OOPCLI(nib.CommandLine):
@@ -513,5 +513,5 @@ class OOPBadShell(nib.CommandLine):
513513
_cmd_prefix = 'shell_dne {}/'.format(oop)
514514

515515
ci = OOPBadShell(command=script_name)
516-
with pytest.raises(OSError):
516+
with pytest.raises(IOError):
517517
ci.run()

0 commit comments

Comments
 (0)