Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167) | Serhiy Storchaka | 2019-08-08 | 1 | -6/+1 |
| | |||||
* | bpo-37421: urllib.request tests call urlcleanup() (GH-14529) | Victor Stinner | 2019-07-02 | 1 | -0/+7 |
| | | | | | | | | urllib.request tests now call urlcleanup() to remove temporary files created by urlretrieve() tests and to clear the _opener global variable set by urlopen() and functions calling indirectly urlopen(). regrtest now checks if urllib.request._url_tempfiles and urllib.request._opener are changed by tests. | ||||
* | bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) | Serhiy Storchaka | 2019-03-05 | 1 | -4/+2 |
| | |||||
* | Remove Invalid comment in test_urllib2.py (#1020) | Senthil Kumaran | 2017-04-07 | 1 | -1/+0 |
| | |||||
* | Add helpful explaination to test_password_manager tests. (#936) | Senthil Kumaran | 2017-04-01 | 1 | -15/+26 |
| | | | Also uncomment and fix a path test. | ||||
* | Remove catching OSError in ftphandler test. Only URLError is raised in ↵ | Senthil Kumaran | 2017-03-31 | 1 | -3/+1 |
| | | | | urllib.request module. (#918) | ||||
* | Remove an unrequired TODO in test_urllib2. (#897) | Senthil Kumaran | 2017-03-30 | 1 | -1/+0 |
| | |||||
* | Issue #12319: Always send file request bodies using chunked encoding | Martin Panter | 2016-08-27 | 1 | -21/+35 |
| | | | | | | | The previous attempt to determine the file’s Content-Length gave a false positive for pipes on Windows. Also, drop the special case for sending zero-length iterable bodies. | ||||
* | Issue #12319: Support for chunked encoding of HTTP request bodies | Martin Panter | 2016-08-24 | 1 | -22/+81 |
| | | | | | | | | | | | | | | | When the body object is a file, its size is no longer determined with fstat(), since that can report the wrong result (e.g. reading from a pipe). Instead, determine the size using seek(), or fall back to chunked encoding for unseekable files. Also, change the logic for detecting text files to check for TextIOBase inheritance, rather than inspecting the “mode” attribute, which may not exist (e.g. BytesIO and StringIO). The Content-Length for text files is no longer determined ahead of time, because the original logic could have been wrong depending on the codec and newline translation settings. Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me. | ||||
* | Issue #17214: Percent-encode non-ASCII bytes in redirect targets | Martin Panter | 2016-05-16 | 1 | -0/+35 |
| | | | | | | | | | Some servers send Location header fields with non-ASCII bytes, but "http. client" requires the request target to be ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch by Christian Heimes. Python 2 does not suffer any problem because it allows non-ASCII bytes in the HTTP request target. | ||||
* | Issue #14132: Fix redirect handling when target is just a query string | Martin Panter | 2016-05-16 | 1 | -1/+17 |
| | |||||
* | Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler. | Senthil Kumaran | 2016-05-13 | 1 | -2/+9 |
| | | | | Patch contributed by Chi Hsuan Yen. | ||||
* | Issue #2202: Fix UnboundLocalError in ↵ | Berker Peksag | 2016-03-06 | 1 | -1/+11 |
| | | | | | | | | AbstractDigestAuthHandler.get_algorithm_impls Raise ValueError if algorithm is not MD5 or SHA. Initial patch by Mathieu Dupuy. | ||||
* | Issue #23887: urllib.error.HTTPError now has a proper repr() representation. | Facundo Batista | 2015-04-22 | 1 | -43/+102 |
| | |||||
* | #7159: generalize urllib prior auth support. | R David Murray | 2015-04-16 | 1 | -16/+88 |
| | | | | | | | | | | | | | This fix is a superset of the functionality introduced by the issue #19494 enhancement, and supersedes that fix. Instead of a new handler, we have a new password manager that tracks whether we should send the auth for a given uri. This allows us to say "always send", satisfying #19494, or track that we've succeeded in auth and send the creds right away on every *subsequent* request. The support for using the password manager is added to AbstractBasicAuth, which means the proxy handler also now can handle prior auth if passed the new password manager. Patch by Akshit Khurana, docs mostly by me. | ||||
* | Issue #23387: Skip test_issue16464 if it raises an 5xx error. | Berker Peksag | 2015-03-02 | 1 | -21/+11 |
|\ | | | | | | | | | Also, remove support.run_doctest() since there is no doctests in test_urllib2 and urllib.request. | ||||
| * | Issue #23387: Skip test_issue16464 if it raises an 5xx error. | Berker Peksag | 2015-03-02 | 1 | -21/+11 |
| | | | | | | | | | | Also, remove support.run_doctest() since there is no doctests in test_urllib2 and urllib.request. | ||||
* | | Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the | Serhiy Storchaka | 2015-01-26 | 1 | -1/+1 |
|\ \ | |/ | | | | | directory containing a backslash. | ||||
| * | Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the | Serhiy Storchaka | 2015-01-26 | 1 | -1/+1 |
| | | | | | | | | directory containing a backslash. | ||||
* | | Close #19494: add urrlib.request.HTTPBasicPriorAuthHandler | Nick Coghlan | 2014-11-12 | 1 | -0/+15 |
|/ | | | | | | | | | | | | | | | | | | | | | This auth handler adds the Authorization header to the first HTTP request rather than waiting for a HTTP 401 Unauthorized response from the server as the default HTTPBasicAuthHandler does. This allows working with websites like https://api.github.com which do not follow the strict interpretation of RFC, but more the dicta in the end of section 2 of RFC 2617: > A client MAY preemptively send the corresponding Authorization > header with requests for resources in that space without receipt > of another challenge from the server. Similarly, when a client > sends a request to a proxy, it may reuse a userid and password in > the Proxy-Authorization header field without receiving another > challenge from the proxy server. See section 4 for security > considerations associated with Basic authentication. Patch by Matej Cepl. | ||||
* | Issue #19524: Fixed resource leak in the HTTP connection when an invalid | Serhiy Storchaka | 2014-09-06 | 1 | -0/+29 |
| | | | | response is received. Patch by Martin Panter. | ||||
* | Fix localhost checking in FileHandler. Raised in #21970. | Senthil Kumaran | 2014-07-22 | 1 | -1/+2 |
| | |||||
* | Convert urllib.request parse_proxy doctests to unittests. | Senthil Kumaran | 2014-04-14 | 1 | -1/+38 |
| | |||||
* | Issue #20939: Use www.example.com instead of www.python.org to avoid test | Ned Deily | 2014-03-27 | 1 | -1/+1 |
| | | | | failures when ssl is not present. | ||||
* | Issue #20939: Backout test_urllib2.test_issue16464 disables: | Ned Deily | 2014-03-27 | 1 | -6/+0 |
| | | | | | 68335b8afb1f 3.4 ad0c75b7bd7d default | ||||
* | Skip test_urllib2.test_issue16464() is the ssl module is missing | Victor Stinner | 2014-03-19 | 1 | -0/+6 |
| | |||||
* | Merge: #20933: At least one place maps 'test' to 'localhost'...fix test. | R David Murray | 2014-03-15 | 1 | -1/+2 |
|\ | |||||
| * | #20933: At least one place maps 'test' to 'localhost'...fix test. | R David Murray | 2014-03-15 | 1 | -1/+2 |
| | | | | | | | | | | | | | | Discovery and patch by Wenzhu Man. University of Waterloo apparently maps the local name 'test' to localhost, which is in the bypass list, causing the test to fail. So change 'test' to a name unlikely to get mapped to localhost. | ||||
* | | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵ | Serhiy Storchaka | 2014-02-08 | 1 | -3/+4 |
|\ \ | |/ | | | | | tests. | ||||
| * | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵ | Serhiy Storchaka | 2014-02-08 | 1 | -3/+4 |
| | | | | | | | | tests. | ||||
| * | Backporing the fix from Issue #12692 | Senthil Kumaran | 2013-12-29 | 1 | -0/+1 |
| | | |||||
| * | #17648 - convert test_urllib2.py doctests to unittests | Senthil Kumaran | 2013-04-09 | 1 | -210/+186 |
| | | |||||
* | | Fix typo | Senthil Kumaran | 2013-09-10 | 1 | -1/+1 |
| | | |||||
* | | Issue #18978: Add tests to capture expected behavior for class-level method ↵ | Jason R. Coombs | 2013-09-08 | 1 | -0/+9 |
| | | | | | | | | overrides. | ||||
* | | Fix #17272 - Make Request.full_url and Request.get_full_url return same ↵ | Senthil Kumaran | 2013-05-24 | 1 | -0/+15 |
| | | | | | | | | | | | | result under all circumstances. Document the change of Request.full_url to a property. | ||||
* | | Issue #17272: Making the urllib.request's Request.full_url a descriptor. Fixes | Senthil Kumaran | 2013-04-25 | 1 | -0/+24 |
| | | | | | | | | bugs with assignment to full_url. Patch by Demian Brecht. | ||||
* | | #17648 - Clean up test_urllib2.py. Converted doctests to unittest for | Senthil Kumaran | 2013-04-09 | 1 | -215/+185 |
| | | | | | | | | expansion. | ||||
* | | #17485: Delete the Content-Length header if the data attribute is deleted. | R David Murray | 2013-03-20 | 1 | -2/+11 |
| | | | | | | | | This is a follow on to issue 16464. Original patch by Daniel Wozniak. | ||||
* | | #17471: merge from 3.3 | Senthil Kumaran | 2013-03-19 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | #17471 - merge from 3.2 | Senthil Kumaran | 2013-03-19 | 1 | -1/+7 |
| |\ | |||||
| | * | #17471 - Increasing the urllib.error test coverage. Bringing it to 100%. ↵ | Senthil Kumaran | 2013-03-19 | 1 | -1/+9 |
| | | | | | | | | | | | | Based on patch contributed by Daniel Wozniak | ||||
* | | | #17471 - merge from 3.3 | Senthil Kumaran | 2013-03-19 | 1 | -0/+3 |
|\ \ \ | |/ / | |||||
| * | | #17471 - merge from 3.2 | Senthil Kumaran | 2013-03-19 | 1 | -0/+3 |
| |\ \ | | |/ | |||||
| | * | #17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak | Senthil Kumaran | 2013-03-19 | 1 | -0/+3 |
| | | | |||||
| * | | merge from 3.2 | Senthil Kumaran | 2012-12-23 | 1 | -12/+28 |
| |\ \ | | |/ | | | | | | | Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly | ||||
| | * | Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that ↵ | Senthil Kumaran | 2012-12-23 | 1 | -10/+26 |
| | | | | | | | | | | | | to return headers correctly | ||||
* | | | Refactor test_urllib2. Include test_HTTPError_interface under MiscTests | Senthil Kumaran | 2013-03-19 | 1 | -21/+20 |
| | | | |||||
* | | | #17474 - Remove the various deprecated methods of Request class. | Senthil Kumaran | 2013-03-19 | 1 | -21/+0 |
| | | | |||||
* | | | Skip a test unless the network resource is available. | Brett Cannon | 2013-01-26 | 1 | -0/+2 |
| | | | |||||
* | | | replace threw with raised (#16714) | Andrew Svetlov | 2012-12-19 | 1 | -1/+1 |
|\ \ \ | |/ / |