Mercurial > hgsubversion
comparison tests/test_util.py @ 1337:0f1f88e71138 stable
tests: leave from the directory before removing
On Windows, we need to leave from the direcotry before
removing it, otherwise error 32 (ERROR_SHARING_VIOLATION).
author | Shun-ichi Goto <shunichi.goto@gmail.com> |
---|---|
date | Thu, 14 May 2015 13:49:52 +0900 |
parents | 260212f056b7 |
children | c6b01fd34694 |
comparison
equal
deleted
inserted
replaced
1336:f97b8c333c9e | 1337:0f1f88e71138 |
---|---|
511 os.environ[var] = val | 511 os.environ[var] = val |
512 try: | 512 try: |
513 i18n._ugettext = self.oldugettext # Mercurial >= 3.2 | 513 i18n._ugettext = self.oldugettext # Mercurial >= 3.2 |
514 except AttributeError: | 514 except AttributeError: |
515 i18n.t = self.oldt | 515 i18n.t = self.oldt |
516 os.chdir(self.oldwd) | |
516 rmtree(self.tmpdir) | 517 rmtree(self.tmpdir) |
517 os.chdir(self.oldwd) | |
518 setattr(ui.ui, self.patch[0].func_name, self.patch[0]) | 518 setattr(ui.ui, self.patch[0].func_name, self.patch[0]) |
519 | 519 |
520 _verify_our_modules() | 520 _verify_our_modules() |
521 | 521 |
522 def ui(self, layout='auto'): | 522 def ui(self, layout='auto'): |