diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/serv.py | 4 | ||||
-rw-r--r-- | test/sslserv.py | 2 | ||||
-rw-r--r-- | test/test_server.py | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/test/serv.py b/test/serv.py index 53747f08..f6dee2cc 100644 --- a/test/serv.py +++ b/test/serv.py @@ -4,7 +4,5 @@ from BaseHTTPServer import HTTPServer import handler def make(port): - server_address = ('', port) + server_address = ('127.0.0.1', port) return HTTPServer(server_address, handler.TestRequestHandler) - - diff --git a/test/sslserv.py b/test/sslserv.py index 4aa4df39..557ce869 100644 --- a/test/sslserv.py +++ b/test/sslserv.py @@ -18,5 +18,5 @@ class SecureHTTPServer(HTTPServer): def make(port): - server_address = ('', port) + server_address = ('127.0.0.1', port) return SecureHTTPServer(server_address, handler.TestRequestHandler) diff --git a/test/test_server.py b/test/test_server.py index 1e3c1df4..b000cc46 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -41,7 +41,7 @@ class uProxy(tutils.ProxTest): assert f.code == 200 assert f.read() f.close() - + l = self.log() assert l[0].address assert "host" in l[1].headers |