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