diff tests/__init__.py @ 67:730c42743ba3

tests: cleanup on test finish so Windows doesn't complain about used files - chdir out of the test dir before rmtree - cache instances of hgclient and close them explicitly on tearDown before rmtree
author Idan Kamara <idankk86@gmail.com>
date Mon, 05 Sep 2011 20:51:29 +0300
parents eac8be119d81
children bdc1650f216c
line wrap: on
line diff
--- a/tests/__init__.py	Tue Aug 23 21:57:40 2011 +0300
+++ b/tests/__init__.py	Mon Sep 05 20:51:29 2011 +0300
@@ -18,4 +18,5 @@
     os.environ["HGTMP"] = os.path.realpath(tmpdir)
 
 def tearDown(self):
+    os.chdir('..')
     shutil.rmtree(os.environ["HGTMP"])