comparison tests/run-tests.py @ 36522:c3df20906689

tests: fix run-tests environment cleanup on Python 3 Differential Revision: https://phab.mercurial-scm.org/D2521
author Augie Fackler <augie@google.com>
date Thu, 01 Mar 2018 15:46:21 -0500
parents 5c1cea8a3e60
children 6276cbc704a6
comparison
equal deleted inserted replaced
36521:c3692364b344 36522:c3df20906689
1085 'NO_PROXY CHGDEBUG').split(): 1085 'NO_PROXY CHGDEBUG').split():
1086 if k in env: 1086 if k in env:
1087 del env[k] 1087 del env[k]
1088 1088
1089 # unset env related to hooks 1089 # unset env related to hooks
1090 for k in env.keys(): 1090 for k in list(env):
1091 if k.startswith('HG_'): 1091 if k.startswith('HG_'):
1092 del env[k] 1092 del env[k]
1093 1093
1094 if self._usechg: 1094 if self._usechg:
1095 env['CHGSOCKNAME'] = os.path.join(self._chgsockdir, b'server') 1095 env['CHGSOCKNAME'] = os.path.join(self._chgsockdir, b'server')