mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7371)
It depended on a global variable set by other tests.
(cherry picked from commit 7cfd8c6a1b
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
4d11fe7cad
commit
7453caedbb
1 changed files with 3 additions and 1 deletions
|
@ -1175,7 +1175,9 @@ class GzipUtilTestCase(unittest.TestCase):
|
||||||
class ServerProxyTestCase(unittest.TestCase):
|
class ServerProxyTestCase(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
unittest.TestCase.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):
|
def test_close(self):
|
||||||
p = xmlrpclib.ServerProxy(self.url)
|
p = xmlrpclib.ServerProxy(self.url)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue