summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllibnet.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.