Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor clarification of dedent(). | Greg Ward | 2003-05-08 | 1 | -3/+3 |
| | |||||
* | Add DedentTestCase to test dedent() function. | Greg Ward | 2003-05-08 | 1 | -3/+68 |
| | |||||
* | SF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net): | Greg Ward | 2003-05-08 | 1 | -0/+42 |
| | | | | | | | | | add dedent() function, to remove indentation from multiline strings (eg. triple-quoted strings). Differs from inspect.getdoc() by not special-casing the first line (often a sensible approach for non-docstring multiline strings). This should make this function more general (symmetric 'indent' also possible), and more fitting for the textwrap module. | ||||
* | Update to Optik 1.4.1+: adds __all__ (Optik SF bug #728563). | Greg Ward | 2003-05-08 | 1 | -3/+20 |
| | |||||
* | SF bug #730296: Unexpected Changes in list Iterator | Raymond Hettinger | 2003-05-07 | 1 | -4/+4 |
| | | | | | | | | | | | | Reverted a Py2.3b1 change to iterator in subclasses of list and tuple. They had been changed to use __getitem__ whenever it had been overriden in the subclass. This caused some usabilty and performance problems. Also, it was inconsistent with the rest of python where many container methods access the underlying object directly without first checking for an overridden getter. Users needing a change in iterator behavior should override it directly. | ||||
* | SF #596434: tweak wordsep_re so the definition of an em-dash is | Greg Ward | 2003-05-07 | 1 | -1/+1 |
| | | | | | stricter: specifically, "--" must be preceded by a limited set of characters, not by any non-whitespace character. | ||||
* | SF #596434: add test_funky_parens() to probe some more of the tricky | Greg Ward | 2003-05-07 | 1 | -3/+19 |
| | | | | edge cases that David Goodger reported long ago (July 2002?). | ||||
* | SF #726446: raise ValueError if width <= 0. | Greg Ward | 2003-05-07 | 1 | -0/+2 |
| | |||||
* | SF #726446: ensure wrap() raises ValueError when width <= 0. | Greg Ward | 2003-05-07 | 1 | -0/+6 |
| | |||||
* | detect old version 2 hash files and return "bsddb185" as the appropriate | Skip Montanaro | 2003-05-06 | 1 | -3/+4 |
| | | | | module to load them | ||||
* | don't need to worry about file endianness | Skip Montanaro | 2003-05-06 | 1 | -1/+0 |
| | |||||
* | Data file for bsddb185 test | Skip Montanaro | 2003-05-06 | 1 | -0/+0 |
| | |||||
* | test case for bsddb185 module | Skip Montanaro | 2003-05-06 | 1 | -0/+40 |
| | |||||
* | the new bsddb185 module is an expected skip on most platforms (this may not | Skip Montanaro | 2003-05-06 | 1 | -0/+12 |
| | | | | be needed - just being anal) | ||||
* | add not-yet-supported Unicode test just so it doesn't get lost. | Skip Montanaro | 2003-05-06 | 1 | -0/+20 |
| | |||||
* | Allow for Version, Flavor and Download-URL not being set. | Jack Jansen | 2003-05-06 | 1 | -3/+3 |
| | |||||
* | When doing a forced install of a package depending on a pseudo-package | Jack Jansen | 2003-05-06 | 1 | -1/+6 |
| | | | | you got a strange error message. Fixed. | ||||
* | Port test_uu.py to PyUnit. From SF patch #662807. | Walter Dörwald | 2003-05-06 | 1 | -147/+162 |
| | |||||
* | On Mac OS X pwd.getpwall() might return the tuples | Walter Dörwald | 2003-05-05 | 1 | -21/+2 |
| | | | | | | | | | | | | ('pgsql', '*', 252, []) and ('postgres', '*', 252, ['skip']), but pwd.getgrgid(252) might return ('pgsql', '', 252, ['skip']). Drop the test that tried to find a tuple similar to the one returned from pwd.getgrgid() among those for the same gid returned by pwd.getgrall(), as the only working definition of 'similar' seems to be 'has the same gid'. This check can be done more directly. This should fix SF bug #732783. | ||||
* | SF bug 622042: Don't expect response body from HEAD request. | Jeremy Hylton | 2003-05-05 | 2 | -4/+24 |
| | | | | Bug fix candidate. | ||||
* | typo | Skip Montanaro | 2003-05-05 | 1 | -1/+1 |
| | |||||
* | Better fix for newurl as suggested by Jim Jewett in SF bug #730963. | Jeremy Hylton | 2003-05-05 | 1 | -12/+2 |
| | |||||
* | Add comment explaining try/except for endheaders(). | Jeremy Hylton | 2003-05-05 | 1 | -0/+2 |
| | |||||
* | Repair redirect handling and raise URLError on host-not-found. | Jeremy Hylton | 2003-05-04 | 1 | -22/+36 |
| | | | | | | | | | | | | | | The latest changes to the redirect handler couldn't possibly have been tested, because they did not compute a newurl and failed with a NameError. The __name__ == "__main__": block has a test for redirects. Also, fix SF bug 723831. A urlopen() that failed because the host was not found raised a socket.gaierror unlike earlier versions of urllib2. The problem is that httplib actually establishes the connection at a different point starting with Python 2.2. Move the try/except to endheaders(), which is where the connection gets established. | ||||
* | 'forget' now also deletes any proper .pyo files. | Brett Cannon | 2003-05-04 | 1 | -1/+19 |
| | | | | Added some docstrings. | ||||
* | Somewhere along the way, the softspace attr of file objects became read- | Tim Peters | 2003-05-04 | 1 | -0/+20 |
| | | | | only. Repaired, and added new tests to test_file.py. | ||||
* | Refer to __builtin__.file, not __builtins__.file | Martin v. Löwis | 2003-05-03 | 1 | -2/+3 |
| | |||||
* | Patch #711902: Cause pydoc to show data descriptor __doc__ strings. | Martin v. Löwis | 2003-05-03 | 3 | -2/+15 |
| | |||||
* | * Added a substantial number of edge case and argument tests for | Raymond Hettinger | 2003-05-03 | 1 | -15/+76 |
| | | | | | | | the itertoolsmodule. * Taught itertools.repeat(obj, n) to treat negative repeat counts as zero. This behavior matches that for sequences and prevents infinite loops. | ||||
* | Apply the simplified test_support boilerplate. | Raymond Hettinger | 2003-05-03 | 1 | -6/+4 |
| | |||||
* | Simplify ref count test. | Raymond Hettinger | 2003-05-02 | 1 | -3/+3 |
| | |||||
* | Add StopIteration tests. | Raymond Hettinger | 2003-05-02 | 1 | -7/+27 |
| | | | | Simplify test_main(). | ||||
* | CWI moved websites around without me knowing it, and together with | Jack Jansen | 2003-05-02 | 1 | -1/+1 |
| | | | | | a bug in urllib2 this caused pimp to stop working. Fixed the URL to make it work again. | ||||
* | The previous made the stop argument optional. | Raymond Hettinger | 2003-05-02 | 1 | -1/+1 |
| | | | | It is better to be explicit and just allow stop to be None. | ||||
* | SF bug #730685: itertools.islice stop argument is not optional | Raymond Hettinger | 2003-05-02 | 1 | -3/+71 |
| | | | | | * itertools.islice() stop argument did not perform as documented. * beefed-up test suite | ||||
* | Added missing modules to __all__ check. | Raymond Hettinger | 2003-05-02 | 1 | -0/+4 |
| | |||||
* | Used sets.Set() to compare unordered sequences. | Raymond Hettinger | 2003-05-02 | 6 | -40/+17 |
| | | | | Improves clarity and brevity. | ||||
* | Rename funny long suite to Disk_File_Folder. | Jack Jansen | 2003-05-01 | 7 | -102/+102 |
| | |||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 63 | -401/+309 |
| | | | | | | | | | | 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. | ||||
* | Consistently use test_support.foo everywhere. | Walter Dörwald | 2003-05-01 | 1 | -15/+5 |
| | | | | | | Remove the last use of veris(). Remove now useless imports and functions. | ||||
* | Patch #727805: Remove extra line ending from CGI responses. | Martin v. Löwis | 2003-05-01 | 2 | -3/+4 |
| | |||||
* | Delete comment my last checkin rendered obsolete. | Michael W. Hudson | 2003-04-30 | 1 | -2/+0 |
| | | | | | I should also not that my last checkin did stuff that made failures give more helpful information. | ||||
* | Change from a threading.Condition object to a threading.Event object for | Brett Cannon | 2003-04-30 | 1 | -6/+3 |
| | | | | | | | signalling when the TCP server is done. Should hopefully solve hanging issues for Solaris 8 & 9. Solves the apparent hanging issue with OS X. Closes patch #729988 . | ||||
* | Make time.sleep calls go to 0 for common testing. | Brett Cannon | 2003-04-30 | 2 | -11/+19 |
| | |||||
* | Flesh out test_support docs. | Brett Cannon | 2003-04-30 | 1 | -3/+19 |
| | |||||
* | improved CRLF regex for previous fix | Piers Lauder | 2003-04-29 | 1 | -1/+1 |
| | |||||
* | added code to canonicalise line endings in data sent via "append" - fix for ↵ | Piers Lauder | 2003-04-29 | 1 | -2/+3 |
| | | | | bug report 723962 | ||||
* | Allow "@" in unquoted attribute values. | Fred Drake | 2003-04-29 | 2 | -1/+10 |
| | | | | | Added test that checks for characters allowed in the query part of URLs. Backport candidate. | ||||
* | Port test_richcmp.py to PyUnit. From SF patch #662807 which additional | Walter Dörwald | 2003-04-29 | 2 | -366/+276 |
| | | | | tests and comments. | ||||
* | Use the new htmlentitydefs.codepoint2name for test_xmlcharnamereplace() | Walter Dörwald | 2003-04-29 | 1 | -7/+1 |
| |