diff options
Diffstat (limited to 'Lib/packaging/tests/test_uninstall.py')
| -rw-r--r-- | Lib/packaging/tests/test_uninstall.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/packaging/tests/test_uninstall.py b/Lib/packaging/tests/test_uninstall.py index 2d0e896..578b10d 100644 --- a/Lib/packaging/tests/test_uninstall.py +++ b/Lib/packaging/tests/test_uninstall.py @@ -36,8 +36,13 @@ class UninstallTestCase(support.TempdirManager, self.addCleanup(os.chdir, os.getcwd()) self.addCleanup(enable_cache) self.root_dir = self.mkdtemp() + self.cwd = os.getcwd() disable_cache() + def tearDown(self): + os.chdir(self.cwd) + super(UninstallTestCase, self).tearDown() + def run_setup(self, *args): # run setup with args args = ['run'] + list(args) |
