Roundup Robot added the comment:
New changeset 0e19f421dc9e by Martin Panter in branch '3.5':
Issue #26609: Fix HTTP server tests to request an absolute URL path
https://hg.python.org/cpython/rev/0e19f421dc9e
New changeset 34ebf79acd78 by Martin Panter in branch 'default':
Issue #26609: Merge
Xiang Zhang added the comment:
Get the slash prefixed path in Setup() is a good idea. I change the patch. I
retain self.tempdir_name so we can use it in a test for no leading slash. The
case creating index.html is OK with self.tempdir_name since we have changed our
working directory to
Martin Panter added the comment:
Perhaps tempdir_name could get the slash prefixed in setUp() rather than in
every test. There is one case that creates index.html which could probably be
changed to use self.tempdir, and then the rest could be renamed to say
self.base_url.
Rejecting requests
New submission from Xiang Zhang:
When requesting a resource from an origin server, the request-target in request
line should always starts with a back slash. But in SimpleHTTPServerTestCase in
test_httpservers.py, almost all the requests are sent without the back slash
though the handler