diff tests/test_util.py @ 1338:356460fb01fa

Merge with stable.
author Augie Fackler <raf@durin42.com>
date Wed, 08 Jul 2015 16:11:00 -0400
parents 0f1f88e71138
children c6b01fd34694
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -513,8 +513,8 @@ class TestBase(unittest.TestCase):
             i18n._ugettext = self.oldugettext  # Mercurial >= 3.2
         except AttributeError:
             i18n.t = self.oldt
-        rmtree(self.tmpdir)
         os.chdir(self.oldwd)
+        rmtree(self.tmpdir)
         setattr(ui.ui, self.patch[0].func_name, self.patch[0])
 
         _verify_our_modules()