summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllibnet.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-27973 - Use test.support.temp_dir instead of NamedTemporaryFile for the ↵Senthil Kumaran2020-01-031-4/+4
| | | | | | | (#17774) desired behavior under windows platform. Suggestion by David Bolen
* [2.7] bpo-27973 - Fix for urllib.urlretrieve() failing on second ftp ↵Senthil Kumaran2019-12-301-1/+38
| | | | | | | | transfer (#1040) * bpo-27973: Fix urllib.urlretrieve failing on subsequent ftp transfers from the same host. * bpo-35411: Skip test_urllibnet FTP tests on Travis CI.
* [2.7] bpo-36019: Use pythontest.net in urllib network tests (GH-11941) ↵Stéphane Wirtel2019-03-051-14/+14
| | | | | | (GH-12177) Use test_support.TEST_HTTP_URL (pythontest.net) instead of http://www.example.com/.
* Replace example.com with pythontest.net in test_getcode of test_urllibnetBerker Peksag2016-05-071-1/+1
|
* give urllib.urlopen a context parameter (closes #22927)Benjamin Peterson2014-11-231-1/+19
|
* Issue #20939: Use www.example.com instead of www.python.org to avoid testNed Deily2014-03-261-12/+12
| | | | failures when ssl is not present.
* Issue #20939: Fix test_geturl failure in test_urllibnet due toNed Deily2014-03-151-1/+1
| | | | new redirect of http://www.python.org/ to https://www.python.org.
* update logo url (#20695)Benjamin Peterson2014-02-191-1/+1
|
* 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.
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-5/+2
|
* Avoid failing in test_urllibnet.test_bad_address when some overzealousAntoine Pitrou2011-07-081-0/+8
| | | | | DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test is now skipped instead.
* Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format stringSenthil Kumaran2010-05-011-0/+13
|
* Replace catch_warnings with check_warnings when it makes sense. Use ↵Florent Xicluna2010-03-311-4/+2
| | | | assertRaises context manager to simplify some tests.
* #7092: silence py3k warnings for deprecated modulesEzio Melotti2010-01-301-1/+1
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-9/+9
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-1/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+1
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-11/+11
|
* modify other occurrence of test_bad_addressAntoine Pitrou2008-12-151-1/+1
|
* warnings.catch_warnings() now returns a list or None instead of the customBrett Cannon2008-09-091-2/+2
| | | | | | | | WarningsRecorder object. This makes the API simpler to use as no special object must be learned. Closes issue 3781. Review by Benjamin Peterson.
* Handle urllib's renaming for Python 3.0:Brett Cannon2008-07-021-3/+7
| | | | | | | | * Deprecate urllib.urlopen() in favor of urllib2.urlopen() for 3.0. * Update docs to mention split/rename of the module and deprecation of urlopen(). Changes to lib2to3 are in a separate commit. Work is for issue #2885.
* Prevent this test from failing if there are transient network problemsNeal Norwitz2008-01-261-10/+30
| | | | by retrying the host for up to 3 times.
* #1178141: add addinfourl.code to get http status code from urllib.Georg Brandl2008-01-201-0/+10
|
* Try to fix several networking tests. The problem is that if hosts haveNeal Norwitz2006-06-111-1/+1
| | | | | | a search path setup, some of these hosts resolve to the wrong address. By appending a period to the hostname, the hostname should only resolve to what we want it to resolve to. Hopefully this doesn't break different bots.
* SF patch 809915: Fix bogus address to hopefully always break.Tim Peters2003-09-201-1/+8
| | | | | | | test_bad_address(): Recover from that VeriSign thought it would boost its corporate coffers to start resolving http://www.sadflkjsasadf.com/. Bugfix candidate -- although the bug is more VeriSign's than Python's!
* Reflow long line.Jeremy Hylton2003-07-171-2/+2
|
* Whitespace normalization.Tim Peters2003-06-151-1/+1
|
* test_fileno(): Skip this test on Windows.Tim Peters2003-05-161-13/+17
|
* Fleshed out tests for urllib requiring a network connection.Brett Cannon2003-05-141-3/+123
|
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-4/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* The socket module now always uses the _socketobject wrapper class, even onSkip Montanaro2003-03-301-0/+32
platforms which have dup(2). The makefile() method is built directly on top of the socket without duplicating the file descriptor, allowing timeouts to work properly. Includes a new test case (urllibnet) which requires the network resource. Closes bug 707074.