We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310a242 commit e969374Copy full SHA for e969374
nibabel/cmdline/tests/test_roi.py
@@ -108,8 +108,7 @@ def test_nib_roi(tmp_path, inplace):
108
def test_nib_roi_bad_slices(capsys, args, errmsg):
109
in_file = os.path.join(data_path, 'functional.nii')
110
111
- retval = main([in_file, '/dev/null', *args])
+ retval = main([in_file, os.devnull, *args])
112
assert retval != 0
113
captured = capsys.readouterr()
114
assert errmsg in captured.out
115
-
0 commit comments