summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc_net.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-28 20:15:22 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-28 20:15:22 (GMT)
commit1439c77417c75737141ea3b1638a396175b6865c (patch)
treee84c4e80218a33410d6208fc1dca0adc3b504a47 /Lib/test/test_xmlrpc_net.py
parent39a73a4cfaac3cdd9592840ee3f6007593609789 (diff)
parentf1c141b7fbbbdf7ac11931e007c774b69e088135 (diff)
downloadcpython-1439c77417c75737141ea3b1638a396175b6865c.zip
cpython-1439c77417c75737141ea3b1638a396175b6865c.tar.gz
cpython-1439c77417c75737141ea3b1638a396175b6865c.tar.bz2
Merge test_xmlrpc_net fixes (issue #13434)
Diffstat (limited to 'Lib/test/test_xmlrpc_net.py')
-rw-r--r--Lib/test/test_xmlrpc_net.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py
index b9853ed..9ba89b2 100644
--- a/Lib/test/test_xmlrpc_net.py
+++ b/Lib/test/test_xmlrpc_net.py
@@ -14,6 +14,7 @@ class CurrentTimeTest(unittest.TestCase):
def test_current_time(self):
# Get the current time from xmlrpc.com. This code exercises
# the minimal HTTP functionality in xmlrpclib.
+ self.skipTest("time.xmlrpc.com is unreliable")
server = xmlrpclib.ServerProxy("http://time.xmlrpc.com/RPC2")
try:
t0 = server.currentTime.getCurrentTime()
@@ -38,13 +39,13 @@ class CurrentTimeTest(unittest.TestCase):
def test_python_builders(self):
# Get the list of builders from the XMLRPC buildbot interface at
# python.org.
- self.skipTest("XMLRPC interface removed in Buildbot 0.8.2")
server = xmlrpclib.ServerProxy("http://www.python.org/dev/buildbot/all/xmlrpc/")
try:
builders = server.getAllBuilders()
except socket.error as e:
self.skipTest("network error: %s" % e)
return
+ self.addCleanup(lambda: server('close')())
# Perform a minimal sanity check on the result, just to be sure
# the request means what we think it means.