diff --git a/tests/test_runscript.py b/tests/test_runscript.py index 808fc0cd6..a5067d001 100644 --- a/tests/test_runscript.py +++ b/tests/test_runscript.py @@ -95,8 +95,13 @@ def test_prints_nothing_for_script_without_run(self): class ChangingDirectoryTests(RunScriptTests): def setUp(self): super(ChangingDirectoryTests, self).setUp() + self.curwd = os.getcwd() os.chdir(project_path) + def tearDown(self): + super(ChangingDirectoryTests, self).setUp() + os.chdir(self.curwd) + def _execute_script_with_chdir(self, dir_policy, start_path, expected_path, chdir=None): os.chdir(os.path.join(project_path, *start_path)) expected_path = os.path.join(project_path, *expected_path)