diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2011-02-07 18:02:19 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:53:55 -0300 |
commit | 5d4af8f96b998af696cbf2a4518cc050f60f78b9 (patch) | |
tree | 20bb61d9124605c5bc56a2549ccf319be78fc6fc /tests | |
parent | 1155542ecca6ab5d8ee00aececae453d980ac690 (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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/util/httpd.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |