Skip to content

Commit c084751

Browse files
committed
Test with a different hostname than the default.
1 parent 2bbedd9 commit c084751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_pydoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ def my_url_handler(url, content_type):
913913
text = 'the URL sent was: (%s, %s)' % (url, content_type)
914914
return text
915915

916-
serverthread = pydoc._start_server(my_url_handler, hostname='localhost', port=0)
917-
self.assertIn('localhost', serverthread.docserver.address)
916+
serverthread = pydoc._start_server(my_url_handler, hostname='0.0.0.0', port=0)
917+
self.assertIn('0.0.0.0', serverthread.docserver.address)
918918

919919
starttime = time.time()
920920
timeout = 1 #seconds

0 commit comments

Comments
 (0)