]> granicus.if.org Git - python/commitdiff
bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7371)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 4 Jun 2018 03:16:48 +0000 (20:16 -0700)
committerNed Deily <nad@python.org>
Mon, 4 Jun 2018 03:16:48 +0000 (23:16 -0400)
It depended on a global variable set by other tests.
(cherry picked from commit 7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_xmlrpc.py

index 15b7ae5581f361cc2d85f6cef988823873e0cde1..5f780d88002e9ee912cdaeb9299ab630008b9cc7 100644 (file)
@@ -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)