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 0d9ff3d commit c557058Copy full SHA for c557058
nipype/testing/tests/test_utils.py
@@ -3,10 +3,17 @@
3
"""Test testing utilities
4
"""
5
6
+import os
7
+import warnings
8
from nipype.testing.utils import TempFATFS
9
from nose.tools import assert_true
10
11
12
def test_tempfatfs():
- with TempFATFS() as tmpdir:
- 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