Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Establish policies with respect to 2.3 compatibilty and treated spec | Raymond Hettinger | 2004-08-19 | 1 | -0/+9 |
| | | | | updates as bugfixes. | ||||
* | SF bug #1012315: weakref.WeakValueDictionary should override .has_key() | Raymond Hettinger | 2004-08-19 | 1 | -31/+36 |
| | | | | | | | | | * Check the found object for a None value during a contains/has_key lookup. Perhaps it will help the OP who is likely suffering from an occassional GC or threading object deletion after self.data is checked. * Complete the previous patch by removing the unnecessary indirection for weak dict iterators. Makes the code cleaner and more readable. | ||||
* | Got rid of nooutput() (was used by DocTestCase.debug()) | Edward Loper | 2004-08-19 | 1 | -5/+1 |
| | | | | | | It's redundant, since no output is written anyway: DebugRunner doesn't generate any output for failures and unexpected exceptions, and since verbose=False, it won't generate any output for non-failures either. | ||||
* | Updated __all__ to include every non-underscored class, function, and | Edward Loper | 2004-08-19 | 1 | -2/+30 |
| | | | | | constant defined by the module (except the test*() functions, which should be integrated into test/test_doctest.py, anyway). | ||||
* | Now that they've settled down, document doctest directives. | Tim Peters | 2004-08-19 | 1 | -3/+17 |
| | |||||
* | Port test_zipfile to unittest (patch #736962). | Johannes Gijsbers | 2004-08-19 | 1 | -98/+98 |
| | |||||
* | ellipsis_match(): Changed treatment of start- and end-of-string exact | Tim Peters | 2004-08-19 | 1 | -25/+35 |
| | | | | matches to be symmetric. This makes the algorithm easier to understand. | ||||
* | Replaced the ELLIPSIS implementation with a worst-case linear-time one. | Tim Peters | 2004-08-19 | 2 | -23/+66 |
| | |||||
* | ELLIPSIS implementation: an ellipsis couldn't match nothing if it | Tim Peters | 2004-08-19 | 2 | -4/+31 |
| | | | | | | | appeared at the end of a line. Repaired that. Also noted that it's too easy to provoke this implementation into requiring exponential time, and especially when a test fails. I'll replace the implementation with an always-efficient one later. | ||||
* | Rewrite test_order so as to be more "proper". Originally relied on an | Brett Cannon | 2004-08-19 | 1 | -7/+13 |
| | | | | | | error based on decorating with staticmethod too soon for the code to execute. This meant that if the test didn't pass it just errored out. Now if the test doesn't pass it leads to a failure instead. | ||||
* | Expand tabs. | Martin v. Löwis | 2004-08-18 | 1 | -1/+1 |
| | |||||
* | Add support for FreeBSD 6. | Hye-Shik Chang | 2004-08-18 | 6 | -3/+526 |
| | |||||
* | Patch #995126: Correct directory size, and generate GNU tarfiles by default. | Martin v. Löwis | 2004-08-18 | 1 | -2/+2 |
| | |||||
* | Patch #800236: add HTTPResponse.getheaders(). | Martin v. Löwis | 2004-08-18 | 1 | -0/+6 |
| | |||||
* | Patch #1006219: let inspect.getsource show '@' decorators and add tests for | Johannes Gijsbers | 2004-08-18 | 2 | -2/+44 |
| | | | | | this (which are rather ugly, but it'll have to do until test_inspect gets a major overhaul and a conversion to unittest). Thanks Simon Percivall! | ||||
* | Patch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate. | Martin v. Löwis | 2004-08-18 | 1 | -16/+2 |
| | |||||
* | Patch #764217: Add nametofont function, exists parameter. | Martin v. Löwis | 2004-08-18 | 1 | -6/+38 |
| | |||||
* | This is Mark Russell's patch: | Michael W. Hudson | 2004-08-17 | 3 | -35/+88 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 1009560 ] Fix @decorator evaluation order From the description: Changes in this patch: - Change Grammar/Grammar to require newlines between adjacent decorators. - Fix order of evaluation of decorators in the C (compile.c) and python (Lib/compiler/pycodegen.py) compilers - Add better order of evaluation check to test_decorators.py (test_eval_order) - Update the decorator documentation in the reference manual (improve description of evaluation order and update syntax description) and the comment: Used Brett's evaluation order (see http://mail.python.org/pipermail/python-dev/2004-August/047835.html) (I'm checking this in for Anthony who was having problems getting SF to talk to him) | ||||
* | Fixed bug in line-number finding for examples (DocTestParser wasn't | Edward Loper | 2004-08-17 | 2 | -7/+28 |
| | | | | | updating line numbers correctly for bare prompts & examples containing only comments). | ||||
* | There are no longer any special case test skips. | Raymond Hettinger | 2004-08-17 | 1 | -3/+0 |
| | |||||
* | Remove test of obsolete trim() operation which was supplanted by | Raymond Hettinger | 2004-08-17 | 1 | -152/+0 |
| | | | | | | | | normalize() in Draft 1.06 (9 October 2002): The normalize operation has been added; it reduces a number to a canonical form. (This replaces the trim operator, which only removed trailing fractional zeros.) | ||||
* | Use readline/raw_input() in pydoc.Helper.interact if available and self.input | Johannes Gijsbers | 2004-08-17 | 1 | -4/+12 |
| | | | | | is sys.stdin. Based on a patch (#726204) by Dmitry Vasiliev and a comment from Guido in an older patch (#549901). | ||||
* | The get_installer_filename() method forgot to return the name it | Thomas Heller | 2004-08-17 | 1 | -0/+1 |
| | | | | calculates. Spotted by Cort Danger Stratton. | ||||
* | SF bug #833957: Ctrl+key combos stop working in IDLE | Raymond Hettinger | 2004-08-17 | 1 | -18/+18 |
| | | | | Make key combinations work with upper and lowercase as is the MS standard. | ||||
* | This file is no longer used in version 2.39. | Raymond Hettinger | 2004-08-17 | 1 | -151/+0 |
| | | | | Was supplanted by tointegral.decTest. | ||||
* | Add two new files and update remaining tests from the latest update of the | Raymond Hettinger | 2004-08-17 | 31 | -191/+1190 |
| | | | | test suite in version 2.39 of dectest.zip. | ||||
* | Revise max() and min() to comply with the 8/2/2004 update to the specification | Raymond Hettinger | 2004-08-17 | 1 | -19/+65 |
| | | | | | | | | | | | (version 1.45): The max and min operations follow the rules in the current IEEE 754 revision draft: if one operand is a quiet NaN and the other is number, then the number is always returned if both operands are finite and equal in numerical value then an ordering is applied: if the signs differ then max returns the operand with the positive sign and min returns the operand with the negative sign; if the signs are the same then the exponent is used to select the result. | ||||
* | * Dynamically build a list of files to be tested (necessary because | Raymond Hettinger | 2004-08-17 | 1 | -81/+14 |
| | | | | | | | version 2.39 of dectest.zip adds some new test files and because some existing test files were getting skipped). * Remove two docstrings which cluttered unittest's output. * Simplify a for-loop with a list comprehension. | ||||
* | Test cases and fixes for bugs described in patch #873418: email/Message.py: | Barry Warsaw | 2004-08-16 | 2 | -2/+14 |
| | | | | del_param fails when specifying a header. | ||||
* | Being bsd-based, darwin/macosx has the same limitation w.r.t. the "echo" | Skip Montanaro | 2004-08-16 | 1 | -1/+1 |
| | | | | service. | ||||
* | Minor formatting cleanup. | Raymond Hettinger | 2004-08-16 | 1 | -5/+6 |
| | |||||
* | * Uncomment the SyntaxError doctest after Tim demonstrated how. | Raymond Hettinger | 2004-08-16 | 1 | -11/+6 |
| | | | | * Remove unnecessary sys.PS2 prompt lines. | ||||
* | - Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)). | Matthias Klose | 2004-08-15 | 2 | -7/+23 |
| | |||||
* | Correct the order of application for decorators. Meant to be bottom-up and not | Brett Cannon | 2004-08-15 | 1 | -7/+16 |
| | | | | top-down. Now matches the PEP. | ||||
* | Let cgi.parse_header() properly unquote headers (patch #1008597). | Johannes Gijsbers | 2004-08-14 | 1 | -0/+1 |
| | |||||
* | bug #989672: pdb.doc and the help messages for the help_d and help_u methods | Johannes Gijsbers | 2004-08-14 | 2 | -4/+4 |
| | | | | | of the pdb.Pdb class gives have been corrected. d(own) goes to a newer frame, u(p) to an older frame, not the other way around. | ||||
* | bug #990669: os.path.realpath() will resolve symlinks before normalizing the | Johannes Gijsbers | 2004-08-14 | 2 | -9/+104 |
| | | | | | | | | path, as normalizing the path may alter the meaning of the path if it contains symlinks. Also add tests for infinite symlink loops and parent symlinks that need to be resolved. | ||||
* | Catch OSError raised when src or dst argument to os.path.samefile doesn't | Johannes Gijsbers | 2004-08-14 | 1 | -1/+4 |
| | | | | exist. | ||||
* | Unwrap too-smart loop: we can't use `src` for both hard and symbolic links. | Johannes Gijsbers | 2004-08-14 | 1 | -8/+16 |
| | |||||
* | Raise an exception when src and dst refer to the same file via a hard link or a | Johannes Gijsbers | 2004-08-14 | 2 | -5/+32 |
| | | | | symbolic link (bug #851123 / patch #854853, thanks Gregory Ball). | ||||
* | Reset old locale after running tests. Not doing so broke | Johannes Gijsbers | 2004-08-14 | 1 | -19/+23 |
| | | | | test_format/test_unicode in some circumstances (patch #1007539/bug #992078). | ||||
* | Back out patch #982681 | Andrew M. Kuchling | 2004-08-13 | 1 | -8/+2 |
| | |||||
* | 'inspect' was not listing the functions in a module properly if the module was | Brett Cannon | 2004-08-13 | 1 | -1/+3 |
| | | | | | | | | reached through a symlink (was comparing path of module to path to function and were not matching because of the symlink). os.path.realpath() is now used to solve this discrepency. Closes bug #570300. Thanks Johannes Gijsbers for the fix. | ||||
* | Convert weak iterators to generator form. | Raymond Hettinger | 2004-08-13 | 1 | -51/+23 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-08-13 | 2 | -6/+6 |
| | |||||
* | Doctest has new traceback gimmicks in 2.4. While trying to document | Tim Peters | 2004-08-13 | 1 | -16/+26 |
| | | | | | | them (which they are now), I had to rewrite the code to understand it. This has got to be the most DWIM part of doctest -- but in context is really necessary. | ||||
* | SF patch #1005778, Fix seg fault if list object is modified during list.index() | Neal Norwitz | 2004-08-13 | 1 | -0/+12 |
| | | | | Backport candidate | ||||
* | include at least one example of an exception passing through pyexpat | Fred Drake | 2004-08-13 | 1 | -0/+15 |
| | |||||
* | Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is | Tim Peters | 2004-08-13 | 1 | -2/+2 |
| | | | | implemented, just what it does. | ||||
* | Report refleaks to stderr as the tests run as well as logging them | Michael W. Hudson | 2004-08-12 | 1 | -0/+2 |
| | | | | to a file. |