Skip to content

Commit ee7c70b

Browse files
committed
add test for cwd
1 parent d0e1ec8 commit ee7c70b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nipype/utils/tests/test_config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,9 @@ def test_display_empty_macosx(monkeypatch):
193193
monkeypatch.setattr(sys, 'platform', 'darwin')
194194
with pytest.raises(RuntimeError):
195195
config.get_display()
196+
197+
def test_cwd_cached(tmpdir):
198+
"""Check that changing dirs does not change nipype's cwd"""
199+
oldcwd = config.cwd
200+
tmpdir.chdir()
201+
assert config.cwd == oldcwd

0 commit comments

Comments
 (0)