mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 23:54:44 +00:00
Fix usage of EnvironmentVarGuard.
This commit is contained in:
parent
b2bdbed3c4
commit
26fc98b90c
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ class TestProxy (httpserver.HttpServerTest):
|
|||
def test_no_proxy (self):
|
||||
# Test setting proxy and no_proxy env variable.
|
||||
with EnvironmentVarGuard() as env:
|
||||
env["http_proxy"] = "http://example.org:8877"
|
||||
env["no_proxy"] = "localhost:%d" % self.port
|
||||
env.set("http_proxy", "http://example.org:8877")
|
||||
env.set("no_proxy", "localhost:%d" % self.port)
|
||||
try:
|
||||
self.start_server()
|
||||
self.no_proxy()
|
||||
|
|
|
|||
Loading…
Reference in a new issue