comparison tests/run-tests.py @ 15344:ec50fe3f7a76 stable

run-tests: make sure no_proxy/NO_PROXY are empty to fix test-http-proxy.t If no_proxy (or NO_PROXY) includes localhost, the test for detecting an unreachable proxy fails, because the proxy setting is ignored.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 22 Oct 2011 23:21:38 +0200
parents 3efbb5e8bf5c
children 59fe460bb0f0
comparison
equal deleted inserted replaced
15343:7fe8b7e097a4 15344:ec50fe3f7a76
1127 os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>" 1127 os.environ["EMAIL"] = "Foo Bar <foo.bar@example.com>"
1128 os.environ['CDPATH'] = '' 1128 os.environ['CDPATH'] = ''
1129 os.environ['COLUMNS'] = '80' 1129 os.environ['COLUMNS'] = '80'
1130 os.environ['GREP_OPTIONS'] = '' 1130 os.environ['GREP_OPTIONS'] = ''
1131 os.environ['http_proxy'] = '' 1131 os.environ['http_proxy'] = ''
1132 os.environ['no_proxy'] = ''
1133 os.environ['NO_PROXY'] = ''
1132 1134
1133 # unset env related to hooks 1135 # unset env related to hooks
1134 for k in os.environ.keys(): 1136 for k in os.environ.keys():
1135 if k.startswith('HG_'): 1137 if k.startswith('HG_'):
1136 # can't remove on solaris 1138 # can't remove on solaris