tests/run-tests.py
branchstable
changeset 724 211fa4b9803d
parent 722 85da4926cf39
child 725 212432db2043
--- a/tests/run-tests.py	Tue Mar 23 15:23:04 2010 +0100
+++ b/tests/run-tests.py	Wed Apr 14 09:08:47 2010 +0200
@@ -852,6 +852,11 @@
     os.environ['GREP_OPTIONS'] = ''
     os.environ['http_proxy'] = ''
 
+    # unset env related to hooks
+    for k in os.environ.keys():
+        if k.startswith('HG_'):
+            del os.environ[k]
+
     global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE
     TESTDIR = os.environ["TESTDIR"] = os.getcwd()
     if options.tmpdir: