summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-06-04 02:55:32 (GMT)
committerNed Deily <nad@python.org>2018-06-04 02:55:32 (GMT)
commit7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2 (patch)
treec23fb43ead0e07dad0ad9ba32e306a00a799a39d /Lib/test/test_xmlrpc.py
parente36837cb71032ccfa713e75623b314f091dc22bb (diff)
downloadcpython-7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2.zip
cpython-7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2.tar.gz
cpython-7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2.tar.bz2
bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362)
It depended on a global variable set by other tests.
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-rw-r--r--Lib/test/test_xmlrpc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index 15b7ae5..5f780d8 100644
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -1175,7 +1175,9 @@ class GzipUtilTestCase(unittest.TestCase):
class ServerProxyTestCase(unittest.TestCase):
def setUp(self):
unittest.TestCase.setUp(self)
- self.url = URL
+ # Actual value of the URL doesn't matter if it is a string in
+ # the correct format.
+ self.url = 'http://fake.localhost'
def test_close(self):
p = xmlrpclib.ServerProxy(self.url)