From 5d4af8f96b998af696cbf2a4518cc050f60f78b9 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Mon, 7 Feb 2011 18:02:19 -0300 Subject: Updated http server used on unit test. Allow the server to reuse the address to avoid errors. Reviewer: Marcelo Lira Lauro Moura --- tests/util/httpd.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/util/httpd.py b/tests/util/httpd.py index 03b44d654..efaf588b6 100644 --- a/tests/util/httpd.py +++ b/tests/util/httpd.py @@ -8,6 +8,7 @@ import random class TestHandler(BaseHTTPServer.BaseHTTPRequestHandler): DATA = "PySide Server" + allow_reuse_address = True def do_GET(self): self.send_head() @@ -24,6 +25,7 @@ class TestHandler(BaseHTTPServer.BaseHTTPRequestHandler): class TestSecureHandler(BaseHTTPServer.BaseHTTPRequestHandler): DATA = "PySide" + allow_reuse_address = True def do_GET(self): self.send_head() -- cgit v1.2.3