From: Serhiy Storchaka Date: Mon, 4 Jun 2018 02:55:32 +0000 (+0300) Subject: bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) X-Git-Tag: v3.8.0a1~1678 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2;p=python bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) It depended on a global variable set by other tests. --- diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 15b7ae5581..5f780d8800 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)