summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2net.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)Christian Heimes2020-11-201-1/+1
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-061-1/+2
|
* bpo-40275: Move TransientResource to test_urllib2net (GH-20812)Victor Stinner2020-06-111-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 Storchaka2020-04-291-14/+15
|
* bpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565)Victor Stinner2019-12-101-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 Galindo2019-11-191-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 Stinner2019-07-021-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 Wirtel2019-02-221-6/+6
|
* bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)Victor Stinner2018-12-051-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 Naoki2018-04-171-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 Askar2017-07-191-3/+3
|
* Issue #24245: Eliminated senseless expect clauses that have no any effect.Serhiy Storchaka2015-05-201-2/+0
| | | | Patch by Martin Panter.
* Issue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/Victor Stinner2015-04-071-3/+1
| | | | are down, don't use anymore in test_urllib2net
* use pythontest.net for fragment redirection testBenjamin Peterson2014-11-051-10/+2
|
* remove requires_ssl decoratorBenjamin Peterson2014-11-051-1/+0
|
* merge 3.3Benjamin Peterson2014-11-051-2/+2
|\
| * merge 3.2Benjamin Peterson2014-11-051-2/+2
| |\
| | * use pythontest.net for url fragment testBenjamin Peterson2014-11-051-2/+2
| | |
| | * Issue #20939: Use www.example.com instead of www.python.org to avoid testNed Deily2014-03-271-5/+5
| | | | | | | | | | | | failures when ssl is not present.
* | | Issue #22596: support.transient_internet() now also catchesBerker Peksag2014-10-251-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 Peksag2014-10-101-0/+5
| | | | | | | | | | | | Patch by Remi Pointel.
* | | Replace bad ftp URLs in test_urllib2netAntoine Pitrou2014-09-161-34/+34
| | |
* | | use https docs urlBenjamin Peterson2014-03-311-2/+2
| | |
* | | merge 3.3 (#21115)Benjamin Peterson2014-03-311-2/+2
|\ \ \ | |/ /
| * | merge 3.2Benjamin Peterson2014-03-311-2/+2
| |\ \ | | |/
| | * use https docs url (#21115)Benjamin Peterson2014-03-311-2/+2
| | |
* | | Issue #20939: Use www.example.com instead of www.python.org to avoid testNed Deily2014-03-271-5/+5
| | | | | | | | | | | | failures when ssl is not present.
* | | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-11/+11
|\ \ \ | |/ / | | | | | | tests.
| * | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-11/+11
| | | | | | | | | | | | tests.
* | | Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-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 whichSerhiy Storchaka2014-01-161-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 notdoko@ubuntu.com2013-12-261-1/+2
| | | | | | | | | | | | enabled.
* | | Update various test modules to use unittest.main() for test discoveryBrett Cannon2013-06-131-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 Kumaran2013-05-241-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 Pitrou2013-02-051-22/+0
| | | | | | | | | | | | | | | | | | new server-side SNI support in the ssl module. Initial patch by Daniel Black.
* | | Get rig of EnvironmentError (#16705)Andrew Svetlov2012-12-171-1/+1
|/ /
* | merge with 3.2Georg Brandl2012-10-281-2/+2
|\ \ | |/
| * changeset: 80007:49e4541f2aefGeorg Brandl2012-10-281-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 Vawda2012-01-251-6/+7
|/
* Fix Issue6631 - Disallow relative file paths in urllib urlopenSenthil Kumaran2012-01-211-0/+2
|
* using support.transient_internet helper method in the urllib2net test.Senthil Kumaran2011-07-311-10/+14
|
* Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or ↵Senthil Kumaran2011-07-271-0/+16
| | | | obsfuscates) Connection: Close header.
* Issue #10883: Fix socket leaks in urllib.request.Nadeem Vawda2011-07-231-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 explicitlyVictor Stinner2011-06-171-0/+8
|
* merge from 3.1Senthil Kumaran2011-04-121-1/+1
|\
| * Fix Issue11703 - urllib2.geturl() does not return correct url when the ↵Senthil Kumaran2011-04-121-1/+1
| | | | | | | | original url contains #fragment. Patch Contribution by Santoso Wijaya.
| * Merged revisions 85893 via svnmerge fromAntoine Pitrou2010-10-311-69/+84
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85893 | georg.brandl | 2010-10-28 16:55:02 +0200 (jeu., 28 oct. 2010) | 1 line #10116: wrap transient_internet() around net access in test_urllib2net. ........
| * Merged revisions 85025 via svnmerge fromSenthil Kumaran2010-09-271-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85025 | senthil.kumaran | 2010-09-27 06:56:03 +0530 (Mon, 27 Sep 2010) | 6 lines Fix Issue1595365 - Adding the req.headers after the un-redirect headers have been added. This helps in accidental overwritting of User-Agent header to default value. To preserve the old behavior, only headers not in unredirected headers will be updated. ........
| * Merged revisions 83818 via svnmerge fromSenthil Kumaran2010-08-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83818 | senthil.kumaran | 2010-08-08 16:57:53 +0530 (Sun, 08 Aug 2010) | 4 lines Fix Issue8280 - urllib2's Request method will remove fragements in the url. This is how it should work,wget and curl work like this way too. Old behavior was wrong. ........
| * Merged revisions 80256 via svnmerge fromSenthil Kumaran2010-04-201-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80256 | senthil.kumaran | 2010-04-20 16:05:49 +0530 (Tue, 20 Apr 2010) | 9 lines Merged revisions 80236 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80236 | senthil.kumaran | 2010-04-20 12:24:59 +0530 (Tue, 20 Apr 2010) | 3 lines Fix Issue8460: Victor's patch to add timeout in test_urllib2net test_urls. ........ ................