Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | GH-127090: Fix `urllib.response.addinfourl.url` value for opened `file:` ↵ | Barney Gale | 2024-12-07 | 1 | -2/+1 |
| | | | | | URIs (#127091) The canonical `file:` URL (as generated by `pathname2url()`) is now used as the `url` attribute of the returned `addinfourl` object. The `addinfourl.url` attribute reflects the resolved URL for both `file:` or `http[s]:` URLs now. | ||||
* | gh-108416: Mark slow but not CPU bound test methods with ↵ | Serhiy Storchaka | 2023-09-05 | 1 | -0/+5 |
| | | | | requires_resource('walltime') (GH-108480) | ||||
* | gh-81403: Fix for CacheFTPHandler in urllib (#13951) | Dan Hemberger | 2023-04-23 | 1 | -0/+2 |
| | | | | | | | | | | | | | | bpo-37222: Fix for CacheFTPHandler in urllib A call to FTP.ntransfercmd must be followed by FTP.voidresp to clear the "end transfer" message. Without this, the client and server get out of sync, which will result in an error if the FTP instance is reused to open a second URL. This scenario occurs for even the most basic usage of CacheFTPHandler. Reverts the patch merged as a resolution to bpo-16270 and adds a test case for the CacheFTPHandler in test_urllib2net.py. Co-authored-by: Senthil Kumaran <senthil@python.org> | ||||
* | GH-93112: Fix missing ResourceDenied import in test_urllib2net (#93113) | Florian Bruhin | 2022-05-24 | 1 | -0/+1 |
| | | | | | The code was moved out of test.support in 311110abcd8ab648dbf1803e36a8ba5d93fa019b (GH-20812), thus making ResourceDenied undefined. | ||||
* | bpo-46178: Remove/rename redundant Travis CI code (#30309) | Hugo van Kemenade | 2021-12-31 | 1 | -12/+0 |
| | |||||
* | bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378) | Mariusz Felisiak | 2021-07-26 | 1 | -1/+1 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413) | Christian Heimes | 2020-11-20 | 1 | -1/+1 |
| | | | Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21743) | Hai Shi | 2020-08-06 | 1 | -1/+2 |
| | |||||
* | bpo-40275: Move TransientResource to test_urllib2net (GH-20812) | Victor Stinner | 2020-06-11 | 1 | -3/+37 |
| | | | | | | Move TransientResource, time_out, socket_peer_reset and ioerror_peer_reset from test.support to test_urllib2net. Remove "import errno" from test.support. | ||||
* | bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711) | Serhiy Storchaka | 2020-04-29 | 1 | -14/+15 |
| | |||||
* | bpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565) | Victor Stinner | 2019-12-10 | 1 | -3/+1 |
| | | | | | Replace hardcoded timeout constants in tests with INTERNET_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once. | ||||
* | Remove binding of captured exceptions when not used to reduce the chances of ↵ | Pablo Galindo | 2019-11-19 | 1 | -1/+1 |
| | | | | | | | creating cycles (GH-17246) Capturing exceptions into names can lead to reference cycles though the __traceback__ attribute of the exceptions in some obscure cases that have been reported previously and fixed individually. As these variables are not used anyway, we can remove the binding to reduce the chances of creating reference cycles. See for example GH-13135 | ||||
* | 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-36019: Use pythontest.net instead of example.com in network tests (GH-11941) | Stéphane Wirtel | 2019-02-22 | 1 | -6/+6 |
| | |||||
* | bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) | Victor Stinner | 2018-12-05 | 1 | -0/+12 |
| | | | | | | On Travis CI, FTP tests of test_urllib2net randomly fail with "425 Security: Bad IP connecting". test.pythoninfo now also logs TRAVIS environment variable. | ||||
* | bpo-33295: Skip test using missing external site (GH-6504) | INADA Naoki | 2018-04-17 | 1 | -0/+1 |
| | | | | | `test_urllib2net.OtherNetworkTests.test_sites_no_connection_close` used `http://www.imdb.com/` but it is moved to https so the test is not valid anymore. Skip test for the moment to allow CI to proceed. | ||||
* | Use pythontest.net instead of debian.org in test_urllib2net (GH-2755) | Ammar Askar | 2017-07-19 | 1 | -3/+3 |
| | |||||
* | Issue #24245: Eliminated senseless expect clauses that have no any effect. | Serhiy Storchaka | 2015-05-20 | 1 | -2/+0 |
| | | | | Patch by Martin Panter. | ||||
* | Issue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/ | Victor Stinner | 2015-04-07 | 1 | -3/+1 |
| | | | | are down, don't use anymore in test_urllib2net | ||||
* | use pythontest.net for fragment redirection test | Benjamin Peterson | 2014-11-05 | 1 | -10/+2 |
| | |||||
* | remove requires_ssl decorator | Benjamin Peterson | 2014-11-05 | 1 | -1/+0 |
| | |||||
* | merge 3.3 | Benjamin Peterson | 2014-11-05 | 1 | -2/+2 |
|\ | |||||
| * | merge 3.2 | Benjamin Peterson | 2014-11-05 | 1 | -2/+2 |
| |\ | |||||
| | * | use pythontest.net for url fragment test | Benjamin Peterson | 2014-11-05 | 1 | -2/+2 |
| | | | |||||
| | * | Issue #20939: Use www.example.com instead of www.python.org to avoid test | Ned Deily | 2014-03-27 | 1 | -5/+5 |
| | | | | | | | | | | | | failures when ssl is not present. | ||||
* | | | Issue #22596: support.transient_internet() now also catches | Berker Peksag | 2014-10-25 | 1 | -6/+1 |
| | | | | | | | | | | | | | | | | | | ConnectionRefusedError exceptions wrapped by urllib.error.URLError. This change should fix sporadic failures in test_urllib2net. | ||||
* | | | Issue #21456: Skip two tests in test_urllib2net.py if _ssl module not present. | Berker Peksag | 2014-10-10 | 1 | -0/+5 |
| | | | | | | | | | | | | Patch by Remi Pointel. | ||||
* | | | Replace bad ftp URLs in test_urllib2net | Antoine Pitrou | 2014-09-16 | 1 | -34/+34 |
| | | | |||||
* | | | use https docs url | Benjamin Peterson | 2014-03-31 | 1 | -2/+2 |
| | | | |||||
* | | | merge 3.3 (#21115) | Benjamin Peterson | 2014-03-31 | 1 | -2/+2 |
|\ \ \ | |/ / | |||||
| * | | merge 3.2 | Benjamin Peterson | 2014-03-31 | 1 | -2/+2 |
| |\ \ | | |/ | |||||
| | * | use https docs url (#21115) | Benjamin Peterson | 2014-03-31 | 1 | -2/+2 |
| | | | |||||
* | | | Issue #20939: Use www.example.com instead of www.python.org to avoid test | Ned Deily | 2014-03-27 | 1 | -5/+5 |
| | | | | | | | | | | | | failures when ssl is not present. | ||||
* | | | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵ | Serhiy Storchaka | 2014-02-08 | 1 | -11/+11 |
|\ \ \ | |/ / | | | | | | | tests. | ||||
| * | | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵ | Serhiy Storchaka | 2014-02-08 | 1 | -11/+11 |
| | | | | | | | | | | | | tests. | ||||
* | | | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -2/+0 |
|\ \ \ | |/ / | | | | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts. | ||||
| * | | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script. | ||||
* | | | - Issue #20070: Don't run test_urllib2net when network resources are not | doko@ubuntu.com | 2013-12-26 | 1 | -1/+2 |
| | | | | | | | | | | | | enabled. | ||||
* | | | Update various test modules to use unittest.main() for test discovery | Brett Cannon | 2013-06-13 | 1 | -9/+2 |
| | | | | | | | | | | | | instead of manually listing tests for test.support.run_unittest(). | ||||
* | | | Fix #17272 - Make Request.full_url and Request.get_full_url return same ↵ | Senthil Kumaran | 2013-05-24 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | result under all circumstances. Document the change of Request.full_url to a property. | ||||
* | | | Issue #17107: Test client-side SNI support in urllib.request thanks to the ↵ | Antoine Pitrou | 2013-02-05 | 1 | -22/+0 |
| | | | | | | | | | | | | | | | | | | new server-side SNI support in the ssl module. Initial patch by Daniel Black. | ||||
* | | | Get rig of EnvironmentError (#16705) | Andrew Svetlov | 2012-12-17 | 1 | -1/+1 |
|/ / | |||||
* | | merge with 3.2 | Georg Brandl | 2012-10-28 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | changeset: 80007:49e4541f2aef | Georg Brandl | 2012-10-28 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | parent: 80003:be83cbf4a789 parent: 80006:32df036e6b75 user: Georg Brandl <georg@python.org> date: Sun Oct 28 10:50:11 2012 +0100 summary: merge with 3.3 | ||||
* | | Issue #12804: Fix test failures on systems without internet access. | Nadeem Vawda | 2012-01-25 | 1 | -6/+7 |
|/ | |||||
* | Fix Issue6631 - Disallow relative file paths in urllib urlopen | Senthil Kumaran | 2012-01-21 | 1 | -0/+2 |
| | |||||
* | using support.transient_internet helper method in the urllib2net test. | Senthil Kumaran | 2011-07-31 | 1 | -10/+14 |
| | |||||
* | Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or ↵ | Senthil Kumaran | 2011-07-27 | 1 | -0/+16 |
| | | | | obsfuscates) Connection: Close header. | ||||
* | Issue #10883: Fix socket leaks in urllib.request. | Nadeem Vawda | 2011-07-23 | 1 | -0/+1 |
| | | | | | | | | * ftpwrapper now uses reference counting to ensure that the underlying socket is closed when the ftpwrapper object is no longer in use * ftplib.FTP.ntransfercmd() now closes the socket if an error occurs Initial patch by Victor Stinner. | ||||
* | Issue #10883: test_urllib2net closes socket explicitly | Victor Stinner | 2011-06-17 | 1 | -0/+8 |
| |