Skip to content

Commit a42439f

Browse files
author
Shoshana Berleant
committed
chdir back to original dir before deleting tempdir
1 parent 89b9856 commit a42439f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nipype/algorithms/tests/test_confounds.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@ def test_dvars():
4141
dvars = ComputeDVARS(in_file=example_data('ds003_sub-01_mc.nii.gz'),
4242
in_mask=example_data('ds003_sub-01_mc_brainmask.nii.gz'),
4343
save_all=True)
44+
45+
origdir = os.getcwd()
4446
os.chdir(tempdir)
47+
4548
res = dvars.run()
4649

4750
dv1 = np.loadtxt(res.outputs.out_std)
4851
yield assert_equal, (np.abs(dv1 - ground_truth).sum()/ len(dv1)) < 0.05, True
4952

53+
os.chdir(origdir)
5054
rmtree(tempdir)

0 commit comments

Comments
 (0)