We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18b13d commit 2e601c5Copy full SHA for 2e601c5
Lib/test/test_xmlrpc.py
@@ -1179,13 +1179,9 @@ def test_gzip_decode_limit(self):
1179
class ServerProxyTestCase(unittest.TestCase):
1180
def setUp(self):
1181
unittest.TestCase.setUp(self)
1182
- if threading:
1183
- self.url = URL
1184
- else:
1185
- # Without threading, http_server() and http_multi_server() will not
1186
- # be executed and URL is still equal to None. 'http://' is a just
1187
- # enough to choose the scheme (HTTP)
1188
- 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'
1189
1190
def test_close(self):
1191
p = xmlrpclib.ServerProxy(self.url)
0 commit comments