Skip to content

Commit e969374

Browse files
authored
Update nibabel/cmdline/tests/test_roi.py
1 parent 310a242 commit e969374

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nibabel/cmdline/tests/test_roi.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ def test_nib_roi(tmp_path, inplace):
108108
def test_nib_roi_bad_slices(capsys, args, errmsg):
109109
in_file = os.path.join(data_path, 'functional.nii')
110110

111-
retval = main([in_file, '/dev/null', *args])
111+
retval = main([in_file, os.devnull, *args])
112112
assert retval != 0
113113
captured = capsys.readouterr()
114114
assert errmsg in captured.out
115-

0 commit comments

Comments
 (0)