summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_wsgiref.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-061-1/+1
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45132 Remove deprecated __getitem__ methods (GH-28225)Hugo van Kemenade2021-09-081-36/+12
| | | | | Remove deprecated __getitem__ methods of xml.dom.pulldom.DOMEventStream, wsgiref.util.FileWrapper and fileinput.FileInput, deprecated since Python 3.9.
* bpo-40275: Use new test.support helper submodules in tests (GH-21315)Hai Shi2020-07-061-1/+2
|
* bpo-40275: Avoid importing socket in test.support (GH-19603)Serhiy Storchaka2020-04-251-1/+2
| | | | | | * Move socket related functions from test.support to socket_helper. * Import socket, nntplib and urllib.error lazily in transient_internet(). * Remove importing multiprocess.
* Fix typos mostly in comments, docs and test names (GH-15209)Min ho Kim2019-08-301-2/+2
|
* bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)Victor Stinner2019-06-261-24/+54
| | | | | | | | Fix test_wsgiref.testEnviron() to no longer depend on the environment variables (don't fail if "X" variable is set). testEnviron() now overrides os.environ to get a deterministic environment. Test full TestHandler.environ content: not only a few selected variables.
* bpo-29183: Fix double exceptions in wsgiref.handlers.BaseHandler (GH-12914)Berker Peksag2019-05-191-0/+25
|
* bpo-27682: Handle client connection terminations in wsgiref (GH-9713)Petter Strandmark2019-05-011-0/+18
|
* Revert "bpo-35565: Add detail to assertion failure message in wsgiref" ↵Raymond Hettinger2018-12-251-13/+0
| | | | | (GH-11317) * Revert part of "bpo-35565: Remove incorrect test and one that wasn't needed for the fix.
* bpo-35565: Add detail to assertion failure message in wsgiref (GH-11293)Cheryl Sabella2018-12-251-0/+13
|
* bpo-9372: Deprecate several __getitem__ methods (GH-8609)Berker Peksag2018-08-111-0/+8
| | | | | | The __getitem__ methods of DOMEventStream, FileInput, and FileWrapper classes ignore their 'index' parameters and return the next item instead.
* Trivial cleanups following bpo-31370 (#3649)Antoine Pitrou2017-09-181-1/+1
| | | | | | * Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
* Use sequence repetition instead of bytes constructor with integer argument.Serhiy Storchaka2016-09-111-1/+1
|
* Backed out changeset af29d89083b3 (closes #25548) (closes #27498)Benjamin Peterson2016-07-141-3/+3
|
* Issue #24291: Merge wsgi partial write fix from 3.5Martin Panter2016-06-051-1/+80
|\
| * Issue #24291: Avoid WSGIRequestHandler doing partial writesMartin Panter2016-06-051-1/+80
| | | | | | | | | | | | | | | | | | If the underlying send() method indicates a partial write, such as when the call is interrupted to handle a signal, the server would silently drop the remaining data. Also add deprecated support for SimpleHandler.stdout.write() doing partial writes.
* | Fixes whitespace issueKushal Das2016-06-041-1/+0
| |
* | Issue #25548: Showing memory address of class objects in replKushal Das2016-06-041-3/+4
|/
* Issue #26717: Stop encoding Latin-1-ized WSGI paths with UTF-8Martin Panter2016-04-171-0/+24
| | | | Patch by Anthony Sottile.
* Issue #26560: Avoid potential ValueError in BaseHandler.start_responseBerker Peksag2016-03-191-0/+21
| | | | Initial patch by Peter Inglesby.
* Merge with 3.5. Fix test_wsgiref execution from the test module.Senthil Kumaran2015-09-031-3/+2
|\
| * Fix test_wsgiref execution from the test module.Senthil Kumaran2015-09-031-3/+2
| |
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-4/+1
| | | | | | | | | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* | Issue #23477: Improve test coverage of wsgiref.simple_server.Berker Peksag2015-03-021-0/+25
|\ \ | |/ | | | | | | | | | | The test checks that the environ argument contains correct headers, querystring and path information. Patch by Alex Shkop.
| * Issue #23477: Improve test coverage of wsgiref.simple_server.Berker Peksag2015-03-021-0/+25
| | | | | | | | | | | | | | The test checks that the environ argument contains correct headers, querystring and path information. Patch by Alex Shkop.
* | Merge from 3.4Senthil Kumaran2014-09-171-0/+5
|\ \ | |/ | | | | Issue #22419: Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
| * Issue #22419: Limit the length of incoming HTTP request in wsgiref server to ↵Senthil Kumaran2014-09-171-0/+5
| | | | | | | | 65536 bytes.
* | Issue #5800: headers parameter of wsgiref.headers.Headers is now optional.Berker Peksag2014-07-021-3/+3
|/ | | | Patch by Pablo Torres Navarrete and SilentGhost.
* Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-2/+2
| | | | tests.
* Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()Serhiy Storchaka2014-01-121-2/+6
| | | | functions now conform to PEP 3333 when handle non-ASCII URLs.
* Issue #16220: wsgiref now always calls close() on an iterable response.Antoine Pitrou2012-10-211-88/+18
|\ | | | | | | Patch by Brent Tubbs.
| * Fix whacky spacking in test_wsgirefAntoine Pitrou2012-10-211-57/+0
| |
| * Issue #16220: wsgiref now always calls close() on an iterable response.Antoine Pitrou2012-10-211-31/+18
| | | | | | | | Patch by Brent Tubbs.
* | Fix 5931 - Python runtime hardcoded in wsgiref.simple_server - Now it ↵Senthil Kumaran2012-07-071-2/+8
|/ | | | specifies an implementation specific term.
* Issue #3839: wsgiref should not override a Content-Length header set byAntoine Pitrou2011-01-061-4/+11
| | | | the application. Initial patch by Clovis Fabricio.
* Fix Issue 10753 - Don't quote ;=, in the PATH_INFO envvar.Senthil Kumaran2010-12-291-0/+4
|
* Implement http://bugs.python.org/issue10155 using And Clover's patch, w/addedPhillip J. Eby2010-11-031-2/+2
| | | | | docs and support for more client-generated CGI variables. (This should complete the WSGI 1.0.1 compliance changes for Python 3.x.)
* Update wsgiref for PEP 3333, and fix errors introduced into the test suite ↵Phillip J. Eby2010-11-021-35/+12
| | | | | | by converting type() checks to isinstance(). (When WSGI specifies a built-in type, it does NOT mean "this type or a subclass" -- it means 'type(x) is SpecifiedType'.)
* Merged revisions 78678,78680,78682 via svnmerge fromBenjamin Peterson2010-03-051-0/+0
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78678 | benjamin.peterson | 2010-03-04 21:07:59 -0600 (Thu, 04 Mar 2010) | 1 line set svn:eol-style ........ r78680 | benjamin.peterson | 2010-03-04 21:15:07 -0600 (Thu, 04 Mar 2010) | 1 line set svn:eol-style on Lib files ........ r78682 | benjamin.peterson | 2010-03-04 21:20:06 -0600 (Thu, 04 Mar 2010) | 1 line remove the svn:executable property from files that don't have shebang lines ........
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-4/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-5/+5
| | | | A patch from Dave Malcolm.
* Merged revisions 76086 via svnmerge fromAntoine Pitrou2009-11-031-1/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76086 | antoine.pitrou | 2009-11-03 17:41:20 +0100 (mar., 03 nov. 2009) | 3 lines Try to make test_wsgiref less fragile against environment changes by other tests ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-22/+22
|
* Fix BytesWarning with -bb in wsgiref.headers.Headers.Antoine Pitrou2009-01-031-0/+5
|
* Actually make test_wsgiref independent from the Python version.Antoine Pitrou2009-01-031-1/+2
|
* Issue #4718: Adapt the wsgiref package so that it actually works with Python ↵Antoine Pitrou2009-01-031-20/+98
| | | | | | 3.x, in accordance with http://www.wsgi.org/wsgi/Amendments_1.0
* - Issue #3300: make urllib.parse.[un]quote() default to UTF-8.Guido van Rossum2008-08-181-0/+2
| | | | | | | | Code contributed by Matt Giuca. quote() now encodes the input before quoting, unquote() decodes after unquoting. There are new arguments to change the encoding and errors settings. There are also new APIs to skip the encode/decode steps. [un]quote_plus() are also affected.
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Renamed the SocketServer module to 'socketserver'.Alexandre Vassalotti2008-05-121-1/+1
| | | | | | | | | | | | | Merged revisions 63132 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r63132 | alexandre.vassalotti | 2008-05-11 22:11:22 -0400 (Sun, 11 May 2008) | 4 lines Updated all import statements to use the new socketserver module name. Renamed socketserver module in its own documentation. Renamed documentation references. ........
* Bug #2565: The repr() of type objects now calls them 'class',Martin v. Löwis2008-04-071-1/+1
| | | | not 'type' - whether they are builtin types or not.