summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-07 18:02:19 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:55 -0300
commit5d4af8f96b998af696cbf2a4518cc050f60f78b9 (patch)
tree20bb61d9124605c5bc56a2549ccf319be78fc6fc
parent1155542ecca6ab5d8ee00aececae453d980ac690 (diff)
Updated http server used on unit test.
Allow the server to reuse the address to avoid errors. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
-rw-r--r--tests/util/httpd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/util/httpd.py b/tests/util/httpd.py
index 03b44d65..efaf588b 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()