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

login
register
mail settings
Submitter phabricator
Date March 1, 2018, 9:12 p.m.
Message ID <a2b05139f5d3330e3e318c5234301342@localhost.localdomain>
Download mbox | patch
Permalink /patch/28593/
State Not Applicable
Headers show

Comments

phabricator - March 1, 2018, 9:12 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc3df20906689: tests: fix run-tests environment cleanup on Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2521?vs=6276&id=6277

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

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
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]