aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_urllibnet.py
Commit message (Collapse)AuthorAge
* gh-71339: Use new assertion methods in the urllib tests (GH-129056)Serhiy Storchaka2025-04-14
|
* gh-128734: Fix ResourceWarning in urllib tests (GH-128735)Serhiy Storchaka2025-01-12
|
* GH-84850: Remove `urllib.request.URLopener` and `FancyURLopener` (#125739)Barney Gale2024-11-19
|
* gh-108416: Mark slow but not CPU bound test methods with ↵Serhiy Storchaka2023-09-05
| | | | requires_resource('walltime') (GH-108480)
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-06
|
* bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)Serhiy Storchaka2020-04-29
|
* bpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565)Victor Stinner2019-12-10
| | | | | 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.
* bpo-37421: urllib.request tests call urlcleanup() (GH-14529)Victor Stinner2019-07-02
| | | | | | | | 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-22
|
* Remove unused variable in test_urllibnet. (#1598)Senthil Kumaran2017-05-15
|
* Minor spell fix and formatting fixes in urllib tests. (#959)Senthil Kumaran2017-04-01
|
* Fix self.fail() call in test_data_headerBerker Peksag2016-05-07
|\
| * Fix self.fail() call in test_data_headerBerker Peksag2016-05-07
| |
* | Replace example.com with pythontest.net in test_urllibnetBerker Peksag2016-05-07
|\| | | | | | | example.com/404 returns 500 instead of 404 now.
| * Replace example.com with pythontest.net in test_urllibnetBerker Peksag2016-05-07
| | | | | | | | example.com/404 returns 500 instead of 404 now.
* | Issue #23277: Remove unused sys and os importsBerker Peksag2016-04-24
|/ | | | Patch by Jon Dufresne.
* Issue #21069: Move test_fileno() from test_urllibnet and rewrite itMartin Panter2016-04-09
| | | | | | | | * No longer attempts to close already freed socket file descriptor * Use socket object to be compatible with Windows * Do not use a timeout to avoid complication with non-blocking mode * Use internal localhost server rather than depending on a third party * Avoid trouble with buffered HTTP data by testing tunnelled CONNECT data
* test_urllibnet: set timeout on test_fileno()Victor Stinner2016-03-30
| | | | Use the default timeout of 30 seconds to avoid blocking forever.
* Issue #23788: Merge redundant test_bad_address() into test_urllibnetMartin Panter2015-12-16
| | | | | | | In Python 2, these were duplicated; one for urllib.urlopen() and one for urllib2.urlopen(). The test_urllibnet version has a better precondition to avoid false failures with bad DNS, and the test_urllib2_localnet version had a more up-to-date comment and domain name.
* Suppress a couple more DeprecationWarnings in the test suite.R David Murray2014-06-11
|
* Invoke test_urllibnet tests using unittest.main functionSenthil Kumaran2014-04-14
|
* Issue #21069: Temporarily use www.google.com while investigatingNed Deily2014-03-27
| | | | test_urllibnet.test_fileno intermittent failures with www.example.com.
* Issue #20939: Use www.example.com instead of www.python.org to avoid testNed Deily2014-03-26
| | | | failures when ssl is not present.
* Issue #20939: merge from 3.3Ned Deily2014-03-15
|
* merge 3.3 (#20695)Benjamin Peterson2014-02-19
|
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-16
|\ | | | | | | | | | | | | 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-16
| | | | | | | | | | | | | | 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 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-08
|\|
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-08
| |
* | Fix test_bad_address on Ubuntu 13.04Antoine Pitrou2013-05-25
|\|
| * Fix test_bad_address on Ubuntu 13.04Antoine Pitrou2013-05-25
| |
* | Issue #3583: mention that testing whether a bad address not triggeringBrett Cannon2013-01-11
| | | | | | | | an OSError can mean a bad DNS server and not an actual bug.
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-25
|/
* Fixes issue #16409: The reporthook callback made by the legacyGregory P. Smith2012-11-10
| | | | | | urllib.request.urlretrieve API now properly supplies a constant non-zero block_size as it did in Python 3.2 and 2.7. This matches the behavior of urllib.request.URLopener.retrieve.
* Avoid failing in test_urllibnet.test_bad_address when some overzealousAntoine Pitrou2011-07-08
| | | | | DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test is now skipped instead.
* Issue #12138: fix use of transient_internet() in test_urllibnetAntoine Pitrou2011-05-22
|
* Read HTTP response inside transient_internet()Antoine Pitrou2011-03-26
|\
| * test_urllibnet: make it so that transient_internet() applies to theAntoine Pitrou2011-03-26
|/ | | | whole HTTP exchange, not only the opening.
* TIMEOUT value change in URLTimeout Test. test.support.transient_internet has aSenthil Kumaran2010-12-15
| | | | | | socket timeout of 30 when it checks for resource. Explicit overrding (like setting the 10) wont exhibit consistent behavior when tests are outside context manager. So, settting it 30.
* Fix Issue10119 - test_urllibnet failure when using support.transient_internet.Senthil Kumaran2010-10-17
|
* Merged revisions 80675 via svnmerge fromSenthil Kumaran2010-05-01
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80675 | senthil.kumaran | 2010-05-01 13:31:56 +0530 (Sat, 01 May 2010) | 3 lines Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string ........
* convert shebang lines: python -> python3Benjamin Peterson2010-03-11
|
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-24
| | | | | | | | | | 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 ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-30
|
* Merged revisions 67777,67779 via svnmerge fromAntoine Pitrou2008-12-15
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r67777 | antoine.pitrou | 2008-12-14 23:33:55 +0100 (dim., 14 déc. 2008) | 3 lines try to fix failure in test_bad_address on some buildbots ........ r67779 | antoine.pitrou | 2008-12-15 01:39:51 +0100 (lun., 15 déc. 2008) | 1 line modify other occurrence of test_bad_address ........
* #2491: os.fdopen() is now almost an alias to the builtin open(), and accepts ↵Amaury Forgeot d'Arc2008-08-01
| | | | | | the same parameters. It just checks that the first argument is a file descriptor.
* Make a new urllib package .Jeremy Hylton2008-06-18
| | | | | | | | | | | | | It consists of code from urllib, urllib2, urlparse, and robotparser. The old modules have all been removed. The new package has five submodules: urllib.parse, urllib.request, urllib.response, urllib.error, and urllib.robotparser. The urllib.request.urlopen() function uses the url opener from urllib2. Note that the unittests have not been renamed for the beta, but they will be renamed in the future. Joint work with Senthil Kumaran.
* Patch for issue 2848, mostly by Humberto Diogenes, with a couple ofBarry Warsaw2008-06-12
| | | | small fixes by Barry. This removes mimetools from the stdlib.
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-20
|
* Get the test to pass on space Ubuntu/Debian and ppc. It was failingNeal Norwitz2008-03-26
| | | | to decode 'Journ\xc3\xa9es Python' as ASCII.