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 7f3713b commit 7f92f63Copy full SHA for 7f92f63
nipype/interfaces/tests/test_r.py
@@ -28,7 +28,7 @@ def test_cmdline(tmp_path):
28
29
@pytest.mark.skipif(no_r, reason="R is not available")
30
def test_run_interface(tmpdir):
31
- os.chdir(tmpdir)
+ cwd = tmpdir.chdir()
32
default_script_file = r.RInputSpec().script_file
33
34
rc = r.RCommand(r_cmd="foo_m")
@@ -46,6 +46,7 @@ def test_run_interface(tmpdir):
46
assert os.path.exists(default_script_file), "scriptfile should exist 3."
47
if os.path.exists(default_script_file): # cleanup
48
os.remove(default_script_file)
49
+ cwd.chdir()
50
51
52
0 commit comments