Skip to content

Commit c557058

Browse files
committed
TEST: Add warning for TempFATFS test
1 parent 0d9ff3d commit c557058

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

nipype/testing/tests/test_utils.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
"""Test testing utilities
44
"""
55

6+
import os
7+
import warnings
68
from nipype.testing.utils import TempFATFS
79
from nose.tools import assert_true
810

911

1012
def test_tempfatfs():
11-
with TempFATFS() as tmpdir:
12-
yield assert_true, tmpdir is not None
13+
try:
14+
fatfs = TempFATFS()
15+
except IOError:
16+
warnings.warn("Cannot mount FAT filesystems with FUSE")
17+
else:
18+
with fatfs as tmpdir:
19+
yield assert_true, os.path.exists(tmpdir)

0 commit comments

Comments
 (0)