Skip to content

Commit

Permalink
squash! [Core] Do not use proxy for local connections
Browse files Browse the repository at this point in the history
Clear set env variables
  • Loading branch information
Remi Hakim committed Apr 8, 2015
1 parent 38ee79a commit b41f9e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ def test_no_proxy(self):
self.assertEquals(expected_proxies, environ_proxies,
(expected_proxies, environ_proxies))

# Clear the env variables set
del env["http_proxy"]
del env["https_proxy"]
del env["HTTP_PROXY"]
del env["HTTPS_PROXY"]


def test_min_collection_interval(self):
if os.environ.get('TRAVIS', False):
Expand Down
6 changes: 6 additions & 0 deletions tests/test_dogstatsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,12 @@ def test_no_proxy(self):
self.assertEquals(expected_proxies, environ_proxies,
(expected_proxies, environ_proxies))

# Clear the env variables set
del env["http_proxy"]
del env["https_proxy"]
del env["HTTP_PROXY"]
del env["HTTPS_PROXY"]


if __name__ == "__main__":
unittest.main()

0 comments on commit b41f9e9

Please sign in to comment.