bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362)

It depended on a global variable set by other tests.
This commit is contained in:
Serhiy Storchaka 2018-06-04 05:55:32 +03:00 committed by Ned Deily
parent e36837cb71
commit 7cfd8c6a1b
1 changed files with 3 additions and 1 deletions

View 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)