Commit 93ba6da2 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by Ned Deily

[2.7] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7374)

It depended on a global variable set by other tests..
(cherry picked from commit 7cfd8c6a)
Co-authored-by: default avatarSerhiy Storchaka <storchaka@gmail.com>
parent b02ceb57
......@@ -854,13 +854,9 @@ class GzipServerTestCase(BaseServerTestCase):
class ServerProxyTestCase(unittest.TestCase):
def setUp(self):
unittest.TestCase.setUp(self)
if threading:
self.url = URL
else:
# Without threading, http_server() and http_multi_server() will not
# be executed and URL is still equal to None. 'http://' is a just
# enough to choose the scheme (HTTP)
self.url = 'http://'
# 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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment