mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
python-3.6.zip added from Github
README.cosmo contains the necessary links.
This commit is contained in:
parent
75fc601ff5
commit
0c4c56ff39
4219 changed files with 1968626 additions and 0 deletions
32
third_party/python/Lib/test/test_xmlrpc_net.py
vendored
Normal file
32
third_party/python/Lib/test/test_xmlrpc_net.py
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
import collections.abc
|
||||
import unittest
|
||||
from test import support
|
||||
|
||||
import xmlrpc.client as xmlrpclib
|
||||
|
||||
|
||||
@unittest.skip('XXX: buildbot.python.org/all/xmlrpc/ is gone')
|
||||
class PythonBuildersTest(unittest.TestCase):
|
||||
|
||||
def test_python_builders(self):
|
||||
# Get the list of builders from the XMLRPC buildbot interface at
|
||||
# python.org.
|
||||
server = xmlrpclib.ServerProxy("http://buildbot.python.org/all/xmlrpc/")
|
||||
try:
|
||||
builders = server.getAllBuilders()
|
||||
except OSError as e:
|
||||
self.skipTest("network error: %s" % e)
|
||||
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.
|
||||
self.assertIsInstance(builders, collections.abc.Sequence)
|
||||
self.assertTrue([x for x in builders if "3.x" in x], builders)
|
||||
|
||||
|
||||
def test_main():
|
||||
support.requires("network")
|
||||
support.run_unittest(PythonBuildersTest)
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
Loading…
Add table
Add a link
Reference in a new issue