diff options
Diffstat (limited to 'tests/helpers/testutils.py')
-rw-r--r-- | tests/helpers/testutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helpers/testutils.py b/tests/helpers/testutils.py index 574c57cb0..0c8cdb8d0 100644 --- a/tests/helpers/testutils.py +++ b/tests/helpers/testutils.py @@ -220,11 +220,11 @@ def nop_contextmanager(): def change_cwd(path): """Use a path as current working directory.""" old_cwd = pathlib.Path.cwd() - os.chdir(str(path)) + os.chdir(path) try: yield finally: - os.chdir(str(old_cwd)) + os.chdir(old_cwd) @contextlib.contextmanager |