This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ron_adam
Recipients belopolsky, eric.araujo, georg.brandl, ncoghlan, ping, r.liebscher, ron_adam
Date 2010-11-21.07:18:20
SpamBayes Score 6.618209e-05
Marked as misclassified No
Message-id <1290323902.69.0.692259113861.issue2001@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-11-21 07:18:23ron_adamsetrecipients: + ron_adam, ping, georg.brandl, ncoghlan, belopolsky, eric.araujo, r.liebscher
2010-11-21 07:18:22ron_adamsetmessageid: <1290323902.69.0.692259113861.issue2001@psf.upfronthosting.co.za>
2010-11-21 07:18:21ron_adamlinkissue2001 messages
2010-11-21 07:18:21ron_adamcreate