Skip to content

Commit 331ab95

Browse files
committed
fix: Check for usage string without assuming no ANSI colors
1 parent 860b56e commit 331ab95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/cmdline/tests/test_roi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_entrypoint(capsys):
141141
with pytest.raises(SystemExit):
142142
main()
143143
captured = capsys.readouterr()
144-
assert captured.out.startswith('usage: nib-roi')
144+
assert 'usage: nib-roi' in captured.out
145145

146146

147147
def test_nib_roi_unknown_axes(capsys):

0 commit comments

Comments
 (0)