Skip to content

Commit f1d126a

Browse files
author
Ben Cipollini
committed
TST: skip test if fakes3 not installed.
1 parent 966b4d9 commit f1d126a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nipype/interfaces/tests/test_io.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,13 @@ def test_s3datasink_substitutions():
213213

214214
# run fakes3 server and set up bucket
215215
fakes3dir = op.expanduser('~/fakes3')
216-
proc = Popen(['fakes3', '-r', fakes3dir, '-p', '4567'], stdout=open(os.devnull, 'wb'))
216+
try:
217+
proc = Popen(['fakes3', '-r', fakes3dir, '-p', '4567'], stdout=open(os.devnull, 'wb'))
218+
except OSError as ose:
219+
if 'No such file or directory' in str(ose):
220+
return # fakes3 not installed. OK!
221+
raise ose
222+
217223
conn = S3Connection(anon=True, is_secure=False, port=4567,
218224
host='localhost',
219225
calling_format=OrdinaryCallingFormat())

0 commit comments

Comments
 (0)