Skip to content

Commit 6612178

Browse files
committed
BF(TST): Skip testing of nib-dicomfs --help if no fuse module
1 parent 274c5f3 commit 6612178

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nibabel/tests/test_scripts.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ def test_nib_ls_multiple():
131131
@script_test
132132
def test_help():
133133
for cmd in ['parrec2nii', 'nib-dicomfs', 'nib-ls', 'nib-nifti-dx']:
134+
if cmd == 'nib-dicomfs':
135+
# needs special treatment since depends on fuse module which
136+
# might not be available.
137+
try:
138+
import fuse
139+
except Exception:
140+
continue # do not test this one
134141
code, stdout, stderr = run_command([cmd, '--help'])
135142
assert_equal(code, 0)
136143
assert_re_in(".*%s" % cmd, stdout)

0 commit comments

Comments
 (0)