Patchwork D2521: tests: fix run-tests environment cleanup on Python 3

login
register
mail settings
Submitter phabricator
Date March 1, 2018, 8:47 p.m.
Message ID <differential-rev-PHID-DREV-4v3utmutrug6o3s4ehaj-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28592/
State Superseded
Headers show

Comments

phabricator - March 1, 2018, 8:47 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2521

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

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 @@ 
                 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]