core: Fix the test framework after update of the HTTP server.

This commit is contained in:
Valentin Lorentz 2013-01-21 20:20:26 +01:00
parent bbe65a39a6
commit 164d85d9fe

View File

@ -519,9 +519,9 @@ class TestRequestHandler(httpserver.SupyHTTPRequestHandler):
self._headers_mode = False self._headers_mode = False
def do_X(self, *args, **kwargs): def do_X(self, *args, **kwargs):
assert httpserver.httpServer is not None, \ assert httpserver.http_servers, \
'The HTTP server is not started.' 'The HTTP server is not started.'
self.server = httpserver.httpServer self.server = httpserver.http_servers[0]
httpserver.SupyHTTPRequestHandler.do_X(self, *args, **kwargs) httpserver.SupyHTTPRequestHandler.do_X(self, *args, **kwargs)
# Partially stolen from the standart Python library :) # Partially stolen from the standart Python library :)