summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug in line-number finding for examples (DocTestParser wasn'tEdward Loper2004-08-172-7/+28
| | | | | updating line numbers correctly for bare prompts & examples containing only comments).
* There are no longer any special case test skips.Raymond Hettinger2004-08-171-3/+0
|
* Remove test of obsolete trim() operation which was supplanted byRaymond Hettinger2004-08-171-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.inputJohannes Gijsbers2004-08-171-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 itThomas Heller2004-08-171-0/+1
| | | | calculates. Spotted by Cort Danger Stratton.
* SF bug #833957: Ctrl+key combos stop working in IDLERaymond Hettinger2004-08-171-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 Hettinger2004-08-171-151/+0
| | | | Was supplanted by tointegral.decTest.
* Add two new files and update remaining tests from the latest update of theRaymond Hettinger2004-08-1731-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 specificationRaymond Hettinger2004-08-171-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 becauseRaymond Hettinger2004-08-171-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 Warsaw2004-08-162-2/+14
| | | | del_param fails when specifying a header.
* Being bsd-based, darwin/macosx has the same limitation w.r.t. the "echo"Skip Montanaro2004-08-161-1/+1
| | | | service.
* Minor formatting cleanup.Raymond Hettinger2004-08-161-5/+6
|
* * Uncomment the SyntaxError doctest after Tim demonstrated how.Raymond Hettinger2004-08-161-11/+6
| | | | * Remove unnecessary sys.PS2 prompt lines.
* - Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).Matthias Klose2004-08-152-7/+23
|
* Correct the order of application for decorators. Meant to be bottom-up and notBrett Cannon2004-08-151-7/+16
| | | | top-down. Now matches the PEP.
* Let cgi.parse_header() properly unquote headers (patch #1008597).Johannes Gijsbers2004-08-141-0/+1
|
* bug #989672: pdb.doc and the help messages for the help_d and help_u methodsJohannes Gijsbers2004-08-142-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 theJohannes Gijsbers2004-08-142-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'tJohannes Gijsbers2004-08-141-1/+4
| | | | exist.
* Unwrap too-smart loop: we can't use `src` for both hard and symbolic links.Johannes Gijsbers2004-08-141-8/+16
|
* Raise an exception when src and dst refer to the same file via a hard link or aJohannes Gijsbers2004-08-142-5/+32
| | | | symbolic link (bug #851123 / patch #854853, thanks Gregory Ball).
* Reset old locale after running tests. Not doing so brokeJohannes Gijsbers2004-08-141-19/+23
| | | | test_format/test_unicode in some circumstances (patch #1007539/bug #992078).
* Back out patch #982681Andrew M. Kuchling2004-08-131-8/+2
|
* 'inspect' was not listing the functions in a module properly if the module wasBrett Cannon2004-08-131-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 Hettinger2004-08-131-51/+23
|
* Whitespace normalization.Tim Peters2004-08-132-6/+6
|
* Doctest has new traceback gimmicks in 2.4. While trying to documentTim Peters2004-08-131-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 Norwitz2004-08-131-0/+12
| | | | Backport candidate
* include at least one example of an exception passing through pyexpatFred Drake2004-08-131-0/+15
|
* Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this isTim Peters2004-08-131-2/+2
| | | | implemented, just what it does.
* Report refleaks to stderr as the tests run as well as logging themMichael W. Hudson2004-08-121-0/+2
| | | | to a file.
* This is my patchMichael W. Hudson2004-08-121-2/+9
| | | | | | | [ 1004703 ] Make func_name writable plus fixing a couple of nits in the documentation changes spotted by MvL and a Misc/NEWS entry.
* Fix bugMichael W. Hudson2004-08-121-6/+62
| | | | | | | | | | [ 1005248 ] new.code() not cleanly checking its arguments using the result of new.code() can still destroy the sun, but merely calling the function shouldn't any more. I also rewrote the existing tests of new.code() to use vastly less un-bogus arguments, and added tests for the previous insane behaviours.
* Patch #808719: Ignore the locale's encoding if it is an empty string.Martin v. Löwis2004-08-121-2/+2
| | | | Backported to 2.3.
* In output_difference(), replace blank lines in `want` with <BLANKLINE>Edward Loper2004-08-121-3/+3
| | | | | (rather than replacing <BLANKLINE> with blank lines in `got`). This makes it easier to see what's intended.
* - Changed output of DocTestParser.get_program() to make it easier toEdward Loper2004-08-122-23/+37
| | | | | | | | visually distinguish the expected output from the comments (use "##" to mark expected outputs, and "#" to mark comments). - If the string given to DocTestParser.get_program() is indented, then strip its indentation. (In particular, find the min indentation of non-blank lines, and strip that indentation from all lines.)
* - Added __docformat__Edward Loper2004-08-122-17/+33
| | | | | | | - Added comments for some regexps - If the traceback type/message don't match, then still print full traceback in report_failure (not just the first & last lines) - Renamed DocTestRunner.__failure_header -> _failure_header
* - Changed option directives to be example-specific. (i.e., they nowEdward Loper2004-08-122-79/+254
| | | | | | | | | modify option flags for a single example; they do not turn options on or off.) - Added "indent" and "options" attributes for Example - Got rid of add_newlines param to DocTestParser._parse_example (it's no longer needed; Example's constructor now takes care of it). - Added some docstrings
* - Added a register_optionflag function (so users can add their ownEdward Loper2004-08-121-22/+18
| | | | | option flags); and use it to define the existing optionflag constants.
* Start rewriting doctest's LaTeX docs. Damn, this is slow going!Tim Peters2004-08-101-1/+1
|
* Fix typo in getquotaroot parameter reported by Thierry FLORAC. Also amplify ↵Piers Lauder2004-08-101-3/+5
| | | | doc string for select to indicate proper way to obtain other responses.
* Whitespace normalization.Tim Peters2004-08-091-1/+1
|
* Edward's latest checkins somehow managed to wipe out my previous latestTim Peters2004-08-092-15/+17
| | | | checkins. Reapplying the latter changes.
* - DocTest is now a simple container class; its constructor is no longerEdward Loper2004-08-092-105/+111
| | | | | | | | | | | responsible for parsing the string. - Renamed Parser to DocTestParser - DocTestParser.get_*() now accept the string & name as command-line arguments; the parser's constructor is now empty. - Added DocTestParser.get_doctest() method - Replaced "doctest_factory" argument to DocTestFinder with a "parser" argument (takes a DocTestParser). - Changed _tag_msg to take an indentation string argument.
* This started as a spelling and whitespace cleanup. The comment forTim Peters2004-08-092-20/+22
| | | | | | | | | the set_trace fiddling didn't make sense to me, and I ended up reworking that part of the code. We really do want to save and restore pdb.set_trace, so that each dynamically nested level of doctest gets sys.stdout fiddled to what's appropriate for *it*. The only "trick" really needed is that these layers of set_trace wrappers each call the original pdb.set_trace (instead of the current pdb.set_trace).
* Added support for pdb.set_trace.Jim Fulton2004-08-092-1/+103
|
* Patch #1003700: Add socketpair function to socket module.Dave Cole2004-08-092-0/+44
|
* Removed lots of stuff from the module docstring. My intent for 2.4 isTim Peters2004-08-091-137/+18
| | | | | to put details in the LaTeX docs instead, and lots of stuff in the module docstring wasn't useful anyway.
* Repair some out-of-date comments.Tim Peters2004-08-091-8/+2
|