summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib.py
Commit message (Collapse)AuthorAgeFilesLines
* Make test.test_support.EnvironmentVarGuard behave like a dictionary.Walter Dörwald2009-05-011-1/+1
| | | | | All changes are mirrored to the underlying os.environ dict, but rolled back on exit from the with block.
* Use test.test_support.EnvironmentVarGuard where tests change environment vars.Walter Dörwald2009-04-261-8/+8
|
* Fix for the Issue918368 - urllib doesn't correct server returned urlsSenthil Kumaran2009-04-211-0/+13
|
* Fix for bugs: Issue4675 and Issue4962.Senthil Kumaran2009-03-301-0/+17
|
* make sure to call iteritems()Benjamin Peterson2008-10-211-3/+1
|
* #3879 fix a regression in urllib.getproxies_environmentBenjamin Peterson2008-09-211-0/+26
| | | | reviewers: Benjamin, Georg
* warnings.catch_warnings() now returns a list or None instead of the customBrett Cannon2008-09-091-1/+1
| | | | | | | | 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-10/+14
| | | | | | | | * 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.
* Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-291-16/+24
| | | | | | all the upper level libraries that use it, including urllib2. Added and fixed some tests, and changed docs correspondingly. Thanks to John J Lee for the patch and the pusing, :)
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-4/+0
|
* #1178141: add addinfourl.code to get http status code from urllib.Georg Brandl2008-01-201-1/+6
|
* Change docstrings to comments so test output will display normally.Kurt B. Kaiser2008-01-021-3/+3
|
* Issue1177Kurt B. Kaiser2008-01-021-0/+13
| | | | | | | r58207 and r58247 patch logic is reversed. I noticed this when I tried to use urllib to retrieve a file which required auth. Fix that and add a test for 401 error to verify.
* Get test passing again by commenting out the reference to the test class.Neal Norwitz2007-05-251-1/+1
|
* Commenting out the tests until find out who can test them inFacundo Batista2007-05-251-61/+69
| | | | one of the problematic enviroments.
* Fixing stupid error, and introducing a sleep, to see if theFacundo Batista2007-05-251-1/+1
| | | | other thread is awakened and finish sending data.
* Trying to make the tests work in Windows and Solaris, everywhereFacundo Batista2007-05-251-11/+13
| | | | else just works
* Let's see if reading exactly what is written allow this liveFacundo Batista2007-05-241-0/+1
| | | | | test to pass (now I know why there were so few tests in ftp, http, etc, :( ).
* Removed the .recv() in the test, is not necessary, and wasFacundo Batista2007-05-241-1/+0
| | | | | causing problems that didn't have anything to do with was actually being tested...
* Added an optional timeout parameter to urllib.ftpwrapper, with testsFacundo Batista2007-05-241-1/+66
| | | | | | (for this and a basic one, because there weren't any). Changed also NEWS, but didn't find documentation for this function, assumed it wasn't public...
* Patch #1695862: remove the cleanup code, now that Windows buildbots are greenŽiga Seilnacht2007-04-121-17/+0
| | | | again.
* Patch #1695862: remove old test directory that causes test_urllib failuresŽiga Seilnacht2007-04-091-0/+14
| | | | | on Windows buildbots. The change is a one time fix and will be removed after a successful buildbot run.
* Try to make this test more resistant to dropping from previous runs (ie, ↵Neal Norwitz2007-03-201-0/+3
| | | | files that may exist but cause the test to fail). Should be backported (assuming it works :-)
* Bug #767111: fix long-standing bug in urllib which caused anGeorg Brandl2007-03-141-0/+9
| | | | | AttributeError instead of an IOError when the server's response didn't contain a valid HTTP status line.
* Teach unquote() to handle unicode inputsRaymond Hettinger2005-10-151-0/+4
|
* Revert 1.170. Add tests.Raymond Hettinger2005-09-101-0/+6
|
* patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieveGeorg Brandl2005-08-261-9/+93
|
* Docstring grammar fixAndrew M. Kuchling2004-06-291-1/+1
|
* Fix a bug that robotparser starves memory when the server responsesHye-Shik Chang2004-06-051-0/+34
| | | | | in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and urllib.addbase.
* Whitespace normalization.Tim Peters2003-05-121-10/+10
|
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-8/+8
| | | | | | | | | | 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.
* Added tests for urlretrieve. Also made sure urlopen tests cleaned up ↵Brett Cannon2003-04-291-8/+48
| | | | properly after themselves.
* Fix the tests on Windows, by writing the test data file in binaryGuido van Rossum2003-04-251-1/+1
| | | | | | | | | mode. XXX I'm not convinced that this is the right solution -- arguably, on Windows, the _fileobject class should honor the mode argument and do newline translation. But it's never done that so I think there's no urgent need to fix this today.
* Complete rewrite of module. Only has tests using temporary files; net testsBrett Cannon2003-04-251-102/+376
| | | | | | should go in test_urllibnet.py . Still need to write tests for _urlopener usage and urlretrieve.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* added several more urlencode test cases - part of patch 103391Skip Montanaro2001-01-281-3/+60
|
* added some tests for urlencodeSkip Montanaro2001-01-201-0/+16
|
* urllib.py very recently changed to produce uppercase escapes, but noTim Peters2001-01-191-3/+8
| | | | corresponding changes were made to its std test.
* test_urllib is failing on Windows. I don't know why, but I can at leastTim Peters2001-01-191-5/+5
| | | | change the test to give a clue about *where* it's failing.
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-6/+7
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-2/+0
|
* Remove "," from the list of always_safe characters. It is a reservedJeremy Hylton2000-09-141-0/+18
| | | | | | | | | | character according to RFC 2396. Add some text to quote doc string that explains the quoting rules better. This closes SF Bug #114427. Add _fast_quote operation that uses a dictionary instead of a list when the standard set of safe characters is used.
* fixes bug #111951Jeremy Hylton2000-08-311-0/+14
applies patch #101369 by Moshe Zadke use explicit list of always safe characters instead of string.letters add test case