# HG changeset patch # User Augie Fackler # Date 2018-03-01 20:46:21 # Node ID c3df20906689676de549f81ce9c62c43212c3e34 # Parent c3692364b344c60446723648c5b0e2b3245be6d2 tests: fix run-tests environment cleanup on Python 3 Differential Revision: https://phab.mercurial-scm.org/D2521 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1087,7 +1087,7 @@ class Test(unittest.TestCase): del env[k] # unset env related to hooks - for k in env.keys(): + for k in list(env): if k.startswith('HG_'): del env[k]