Ron Adam <[email protected]> added the comment:
Here is the latest patch with tests.
In order to test the html pages I separated out the URL handler. So now we
have three new functions.
pydoc._start_server(urlhandler, port)
pydoc._url_handler(url, content_type="text/html")
pydoc.browse(port=0, *, open_browser=True)
A css file: pydoc_data/_pydoc.css
The tests in test_pydoc.py, test that the server can be started and shutdown
without an error. And test that the _url_handler() will send back html pages
with the correct title for all the different type of requests that it can
handle.
I think this is ready for a final review now.
----------
Added file: http://bugs.python.org/file19727/issue2001_f.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue2001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com