run-tests: explicitly declare the list of dropped environment variable
It will make the list clearer and more maintainable.
--- a/tests/run-tests.py Thu Nov 01 14:29:14 2018 +0100
+++ b/tests/run-tests.py Fri Oct 19 01:52:16 2018 +0200
@@ -1110,9 +1110,23 @@
env['COLUMNS'] = '80'
env['TERM'] = 'xterm'
- for k in ('HG HGPROF CDPATH GREP_OPTIONS http_proxy no_proxy ' +
- 'HGPLAIN HGPLAINEXCEPT EDITOR VISUAL PAGER ' +
- 'NO_PROXY CHGDEBUG').split():
+ dropped = [
+ 'CDPATH',
+ 'CHGDEBUG',
+ 'EDITOR',
+ 'GREP_OPTIONS',
+ 'HG',
+ 'HGPLAIN',
+ 'HGPLAINEXCEPT',
+ 'HGPROF',
+ 'http_proxy',
+ 'no_proxy',
+ 'NO_PROXY',
+ 'PAGER',
+ 'VISUAL',
+ ]
+
+ for k in dropped:
if k in env:
del env[k]