summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httpservers.py
Commit message (Collapse)AuthorAgeFilesLines
* #20155: use fake HTTP method names so windows doesn't hang the tests.R David Murray2014-06-241-2/+3
| | | | | | | Windows was seeing the 'GET' generated by these tests as invalid and forcibly closing the socket, causing the test to fail. Patch by Jeff Allen.
* merge 3.3Benjamin Peterson2014-06-171-1/+1
|\
| * merge 3.2Benjamin Peterson2014-06-171-1/+1
| |\
| | * expect the correct platform-dependent linesepBenjamin Peterson2014-06-171-1/+1
| | |
* | | merge 3.3 (#21766)Benjamin Peterson2014-06-151-0/+5
|\ \ \ | |/ /
| * | merge 3.2 (#21766)Benjamin Peterson2014-06-151-0/+5
| |\ \ | | |/
| | * url unquote the path before checking if it refers to a CGI script (closes ↵Benjamin Peterson2014-06-151-0/+5
| | | | | | | | | | | | #21766)
* | | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-1/+1
|\ \ \ | |/ / | | | | | | tests.
| * | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-1/+1
| | | | | | | | | | | | tests.
* | | merge 3.3 (#18574)Benjamin Peterson2014-01-191-2/+4
|\ \ \ | |/ /
| * | fix handling of 100-continue status code (closes #18574)Benjamin Peterson2014-01-191-2/+4
| | |
* | | merge 3.3 (#19435)Benjamin Peterson2013-10-301-0/+12
|\ \ \ | |/ /
| * | merge 3.2 (#19435)Benjamin Peterson2013-10-301-0/+12
| |\ \ | | |/
| | * merge 3.1 (#19435)Benjamin Peterson2013-10-301-0/+12
| | |\
| | | * use the collapsed path in the run_cgi method (closes #19435)Benjamin Peterson2013-10-301-0/+10
| | | |
* | | | Fix http.server's request handling case on trailing '/'.Senthil Kumaran2013-09-131-0/+3
|\ \ \ \ | |/ / / | | | | | | | | Patch contributed by Vajrasky Kok. Addresses Issue #17324
| * | | Fix http.server's request handling case on trailing '/'.Senthil Kumaran2013-09-131-0/+3
| | | | | | | | | | | | | | | | Patch contributed by Vajrasky Kok. Addresses Issue #17324
* | | | #1291 http.server's send_error takes an optional explain argumentSenthil Kumaran2013-03-151-0/+10
| | | |
* | | | Do not raise self.skipTest().Serhiy Storchaka2013-02-041-2/+1
|\ \ \ \ | |/ / / | | | | | | | | skipTest() already raises an exception.
| * | | Do not raise self.skipTest().Serhiy Storchaka2013-02-041-2/+1
| |\ \ \ | | |/ / | | | | | | | | skipTest() already raises an exception.
| | * | Do not raise self.skipTest().Serhiy Storchaka2013-02-041-2/+1
| | | | | | | | | | | | | | | | skipTest() already raises an exception.
* | | | code smell. remove pdbSenthil Kumaran2012-10-111-1/+0
| | | |
* | | | Issue #16088: BaseHTTPRequestHandler's send_error method includes aSenthil Kumaran2012-10-111-0/+12
|/ / / | | | | | | | | | Content-Length header. Patch by Antoine Pitrou.
* | | Speed up test_httpservers by avoiding a one-second cleanup wait after each ↵Antoine Pitrou2012-09-291-0/+1
|\ \ \ | |/ / | | | | | | test case.
| * | Speed up test_httpservers by avoiding a one-second cleanup wait after each ↵Antoine Pitrou2012-09-291-0/+1
| | | | | | | | | | | | test case.
* | | Fix CGI tests to take into account the platform's line ending (issue #13119)Antoine Pitrou2012-08-051-5/+7
|\ \ \ | |/ /
| * | Fix CGI tests to take into account the platform's line ending (issue #13119)Antoine Pitrou2012-08-051-5/+7
| | |
* | | merge to default - Issue 10484 - Incorporate improvements to CGI module - ↵Senthil Kumaran2012-04-111-25/+28
|\ \ \ | |/ / | | | | | | Suggested by Glenn Linderman. Refactor code and tests
| * | 3.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by ↵Senthil Kumaran2012-04-111-25/+28
| | | | | | | | | | | | Glenn Linderman. Refactor code and tests
* | | merge - fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran2012-04-101-1/+0
|\ \ \ | |/ /
| * | 3.2- fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran2012-04-101-1/+0
| | |
* | | closes issue10484 - Fix the http.server's cgi PATH_INFO handling problemSenthil Kumaran2012-03-161-0/+1
|\ \ \ | |/ /
| * | closes issue10484 - Fix the http.server's cgi PATH_INFO handling problemSenthil Kumaran2012-03-161-0/+1
| | |
* | | Issue #13308: Fix test_httpservers failures when run as root.Charles-François Natali2011-11-021-2/+6
|\ \ \ | |/ /
| * | Issue #13308: Fix test_httpservers failures when run as root.Charles-François Natali2011-11-021-2/+6
| | |
* | | Issue #3709: a flush_headers method to BaseHTTPRequestHandler which manages theSenthil Kumaran2011-05-091-17/+56
|/ / | | | | | | | | sending of headers to output stream and flushing the internal headers buffer. Patch contribution by Andrew Schaaf
* | Try to strengthen test_httpservers (issue #11617)Antoine Pitrou2011-03-201-4/+4
| |
* | #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\ \ | |/
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| |
| * Merged revisions 87373,87381 via svnmerge fromAntoine Pitrou2010-12-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87373 | senthil.kumaran | 2010-12-18 17:55:23 +0100 (sam., 18 déc. 2010) | 3 lines Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou ........ r87381 | antoine.pitrou | 2010-12-18 18:59:18 +0100 (sam., 18 déc. 2010) | 3 lines NEWS entry for r87373 ........
| * svnmerge fooled me. That test class already existed.Antoine Pitrou2010-12-161-80/+8
| |
| * Forgot to enable this testAntoine Pitrou2010-12-161-0/+1
| |
| * Merged revisions 87317 via svnmerge fromAntoine Pitrou2010-12-161-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87317 | antoine.pitrou | 2010-12-16 17:48:36 +0100 (jeu., 16 déc. 2010) | 4 lines Issue #10714: Limit length of incoming request in http.server to 65536 bytes for security reasons. Initial patch by Ross Lagerwall. ........ (also backport some tests)
| * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-23/+23
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| * Merged revisions 85202 via svnmerge fromSenthil Kumaran2010-10-031-0/+7
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85202 | senthil.kumaran | 2010-10-03 23:25:45 +0530 (Sun, 03 Oct 2010) | 4 lines Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ ........
| * Add BaseHTTPRequestHandler related tests.Senthil Kumaran2010-09-301-1/+76
| |
| * Merged revisions 80487,80489 via svnmerge fromAntoine Pitrou2010-04-251-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80487 | antoine.pitrou | 2010-04-26 00:01:43 +0200 (lun., 26 avril 2010) | 12 lines Merged revisions 80484 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80484 | antoine.pitrou | 2010-04-25 23:40:32 +0200 (dim., 25 avril 2010) | 6 lines Issue #2302: Fix a race condition in SocketServer.BaseServer.shutdown, where the method could block indefinitely if called just before the event loop started running. This also fixes the occasional freezes witnessed in test_httpservers. ........ ................ r80489 | antoine.pitrou | 2010-04-26 00:19:43 +0200 (lun., 26 avril 2010) | 9 lines Merged revisions 80480 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80480 | antoine.pitrou | 2010-04-25 23:15:50 +0200 (dim., 25 avril 2010) | 3 lines Replace a Lock with a better suited Event. ........ ................
| * Note: only the relevant parts of r79474 are merged.Florent Xicluna2010-03-281-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 78793,78798-78799,78977,79095,79196,79474 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78793 | florent.xicluna | 2010-03-08 13:25:35 +0100 (lun, 08 mar 2010) | 2 lines Fix macpath to deal with bytes ................ r78798 | florent.xicluna | 2010-03-08 14:32:17 +0100 (lun, 08 mar 2010) | 18 lines Merged revisions 78777,78787,78790 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78777 | florent.xicluna | 2010-03-08 00:49:03 +0100 (lun, 08 mar 2010) | 4 lines Backport the Popen.poll() protection from subprocess to multiprocessing. See #1731717. It should fix transient failures on test_multiprocessing. ........ r78787 | florent.xicluna | 2010-03-08 08:21:16 +0100 (lun, 08 mar 2010) | 2 lines Don't fail on a debug() statement, if the worker PID is (still) None. ........ r78790 | florent.xicluna | 2010-03-08 12:01:39 +0100 (lun, 08 mar 2010) | 2 lines On finalize, don't try to join not started process. ........ ................ r78799 | florent.xicluna | 2010-03-08 15:44:41 +0100 (lun, 08 mar 2010) | 2 lines Fix ntpath abspath to deal with bytes. ................ r78977 | florent.xicluna | 2010-03-15 14:14:39 +0100 (lun, 15 mar 2010) | 2 lines Fix \xhh specs, #1889. (an oversight of r60193, r60210). ................ r79095 | florent.xicluna | 2010-03-19 15:40:31 +0100 (ven, 19 mar 2010) | 2 lines Rename test.test_support to test.support for 3.x. ................ r79196 | florent.xicluna | 2010-03-21 13:29:50 +0100 (dim, 21 mar 2010) | 9 lines Merged revisions 79195 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79195 | florent.xicluna | 2010-03-21 13:27:20 +0100 (dim, 21 mar 2010) | 2 lines Issue #8179: Fix macpath.realpath() on a non-existing path. ........ ................ r79474 | florent.xicluna | 2010-03-28 01:25:02 +0100 (dim, 28 mar 2010) | 33 lines Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79297 | florent.xicluna | 2010-03-22 18:18:18 +0100 (lun, 22 mar 2010) | 2 lines #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. ........ r79310 | florent.xicluna | 2010-03-22 23:52:11 +0100 (lun, 22 mar 2010) | 2 lines Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only). ........ r79382 | florent.xicluna | 2010-03-24 20:33:25 +0100 (mer, 24 mar 2010) | 2 lines Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. ........ r79425 | florent.xicluna | 2010-03-25 21:32:07 +0100 (jeu, 25 mar 2010) | 2 lines Syntax cleanup `== None` -> `is None` ........ r79426 | florent.xicluna | 2010-03-25 21:33:49 +0100 (jeu, 25 mar 2010) | 2 lines #8207: Fix test_pep277 on OS X ........ r79427 | florent.xicluna | 2010-03-25 21:39:10 +0100 (jeu, 25 mar 2010) | 2 lines Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" ........ r79450 | florent.xicluna | 2010-03-26 20:32:44 +0100 (ven, 26 mar 2010) | 2 lines Ensure that the failed or unexpected tests are sorted before printing. ........ ................
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | To match the behaviour of HTTP server, the HTTP client library now also encodesArmin Ronacher2011-01-221-1/+7
| | | | | | | | | | | | headers with iso-8859-1 (latin1) encoding. It was already doing that for incoming headers which makes this behaviour now consistent in both incoming and outgoing direction.