mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
core: Fix the test framework after update of the HTTP server.
This commit is contained in:
parent
bbe65a39a6
commit
164d85d9fe
@ -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 :)
|
||||||
|
Loading…
Reference in New Issue
Block a user