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 9cad3cd commit 6aab778Copy full SHA for 6aab778
nipype/interfaces/tests/test_r.py
@@ -51,7 +51,7 @@ def test_run_interface(tmpdir):
51
52
@pytest.mark.skipif(no_r, reason="R is not available")
53
def test_set_rcmd(tmpdir):
54
- os.chdir(tmpdir)
+ cwd = tmpdir.chdir()
55
default_script_file = r.RInputSpec().script_file
56
57
ri = r.RCommand()
@@ -60,3 +60,4 @@ def test_set_rcmd(tmpdir):
60
assert not os.path.exists(default_script_file), "scriptfile should not exist."
61
assert ri._cmd == "foo"
62
ri.set_default_r_cmd(_default_r_cmd)
63
+ cwd.chdir()
0 commit comments