Skip to content

Commit 7453cae

Browse files
miss-islingtonserhiy-storchaka
authored andcommitted
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 7cfd8c6) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 4d11fe7 commit 7453cae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_xmlrpc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,9 @@ def test_gzip_decode_limit(self):
11751175
class ServerProxyTestCase(unittest.TestCase):
11761176
def setUp(self):
11771177
unittest.TestCase.setUp(self)
1178-
self.url = URL
1178+
# Actual value of the URL doesn't matter if it is a string in
1179+
# the correct format.
1180+
self.url = 'http://fake.localhost'
11791181

11801182
def test_close(self):
11811183
p = xmlrpclib.ServerProxy(self.url)

0 commit comments

Comments
 (0)