Skip to content

Commit 489a48d

Browse files
committed
Trying to fix test_bet to assert the relative path.
1 parent 6fec887 commit 489a48d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/interfaces/fsl/tests/test_preprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def setup_infile(tmpdir):
3131
@pytest.mark.skipif(no_fsl(), reason="fsl is not installed")
3232
def test_bet(setup_infile):
3333
tmp_infile, tp_dir = setup_infile
34+
# BET converts the in_file path to be relative to prevent
35+
# failure with long paths.
36+
tmp_infile = os.path.relpath(tmp_infile, start=os.getcwd())
3437
better = fsl.BET()
3538
assert better.cmd == "bet"
3639

0 commit comments

Comments
 (0)