Skip to content

Commit 9d58f6d

Browse files
committed
TEST: Get string paths for test files
Closes gh-2513
1 parent aecb559 commit 9d58f6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/tests/test_mesh_ops.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_ident_distances(tmpdir):
2121
dist_ident = m.ComputeMeshWarp()
2222
dist_ident.inputs.surface1 = in_surf
2323
dist_ident.inputs.surface2 = in_surf
24-
dist_ident.inputs.out_file = tmpdir.join('distance.npy')
24+
dist_ident.inputs.out_file = tmpdir.join('distance.npy').strpath
2525
res = dist_ident.run()
2626
assert res.outputs.distance == 0.0
2727

@@ -35,7 +35,7 @@ def test_trans_distances(tmpdir):
3535
from ...interfaces.vtkbase import tvtk
3636

3737
in_surf = example_data('surf01.vtk')
38-
warped_surf = tmpdir.join('warped.vtk')
38+
warped_surf = tmpdir.join('warped.vtk').strpath
3939

4040
inc = np.array([0.7, 0.3, -0.2])
4141

@@ -51,7 +51,7 @@ def test_trans_distances(tmpdir):
5151
dist = m.ComputeMeshWarp()
5252
dist.inputs.surface1 = in_surf
5353
dist.inputs.surface2 = warped_surf
54-
dist.inputs.out_file = tmpdir.join('distance.npy')
54+
dist.inputs.out_file = tmpdir.join('distance.npy').strpath
5555
res = dist.run()
5656
assert np.allclose(res.outputs.distance, np.linalg.norm(inc), 4)
5757
dist.inputs.weighting = 'area'

0 commit comments

Comments
 (0)