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 2bbedd9 commit c084751Copy full SHA for c084751
Lib/test/test_pydoc.py
@@ -913,8 +913,8 @@ def my_url_handler(url, content_type):
913
text = 'the URL sent was: (%s, %s)' % (url, content_type)
914
return text
915
916
- serverthread = pydoc._start_server(my_url_handler, hostname='localhost', port=0)
917
- self.assertIn('localhost', serverthread.docserver.address)
+ serverthread = pydoc._start_server(my_url_handler, hostname='0.0.0.0', port=0)
+ self.assertIn('0.0.0.0', serverthread.docserver.address)
918
919
starttime = time.time()
920
timeout = 1 #seconds
0 commit comments