launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #27849
[Merge] ~cjwatson/launchpad:py3only-xmlrpc-server into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:py3only-xmlrpc-server into launchpad:master.
Commit message:
Import xmlrpc.server directly
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/413335
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3only-xmlrpc-server into launchpad:master.
diff --git a/lib/lp/services/tests/test_timeout.py b/lib/lp/services/tests/test_timeout.py
index b337a5d..9faa4c5 100644
--- a/lib/lp/services/tests/test_timeout.py
+++ b/lib/lp/services/tests/test_timeout.py
@@ -8,6 +8,7 @@ import socket
from textwrap import dedent
import threading
import xmlrpc.client
+import xmlrpc.server
from fixtures import (
MonkeyPatch,
@@ -18,7 +19,6 @@ from requests.exceptions import (
ConnectionError,
InvalidSchema,
)
-from six.moves import xmlrpc_server
from testtools.matchers import (
ContainsDict,
Equals,
@@ -51,7 +51,7 @@ def no_default_timeout():
pass
-class EchoOrWaitXMLRPCReqHandler(xmlrpc_server.SimpleXMLRPCRequestHandler):
+class EchoOrWaitXMLRPCReqHandler(xmlrpc.server.SimpleXMLRPCRequestHandler):
"""The request handler will respond to 'echo' requests normally but will
hang indefinitely for all other requests. This allows us to show a
successful request followed by one that times out.
@@ -65,7 +65,7 @@ class EchoOrWaitXMLRPCReqHandler(xmlrpc_server.SimpleXMLRPCRequestHandler):
self.connection.recv(1024)
-class MySimpleXMLRPCServer(xmlrpc_server.SimpleXMLRPCServer):
+class MySimpleXMLRPCServer(xmlrpc.server.SimpleXMLRPCServer):
"""Create a simple XMLRPC server to listen for requests."""
allow_reuse_address = True