| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
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!
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 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)
|
|
|
|
|
| |
updating line numbers correctly for bare prompts & examples containing
only comments).
|
| |
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
| |
is sys.stdin. Based on a patch (#726204) by Dmitry Vasiliev and a comment from
Guido in an older patch (#549901).
|
|
|
|
| |
calculates. Spotted by Cort Danger Stratton.
|
|
|
|
| |
Make key combinations work with upper and lowercase as is the MS standard.
|
|
|
|
| |
Was supplanted by tointegral.decTest.
|
|
|
|
| |
test suite in version 2.39 of dectest.zip.
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
del_param fails when specifying a header.
|
|
|
|
| |
service.
|
| |
|
|
|
|
| |
* Remove unnecessary sys.PS2 prompt lines.
|
| |
|
|
|
|
| |
top-down. Now matches the PEP.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
exist.
|
| |
|
|
|
|
| |
symbolic link (bug #851123 / patch #854853, thanks Gregory Ball).
|
|
|
|
| |
test_format/test_unicode in some circumstances (patch #1007539/bug #992078).
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Backport candidate
|
| |
|
|
|
|
| |
implemented, just what it does.
|
|
|
|
| |
to a file.
|
|
|
|
|
|
|
| |
[ 1004703 ] Make func_name writable
plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.
|
|
|
|
|
|
|
|
|
|
| |
[ 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.
|
|
|
|
| |
Backported to 2.3.
|
|
|
|
|
| |
(rather than replacing <BLANKLINE> with blank lines in `got`). This
makes it easier to see what's intended.
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
option flags); and use it to define the existing optionflag
constants.
|
| |
|
|
|
|
| |
doc string for select to indicate proper way to obtain other responses.
|
| |
|
|
|
|
| |
checkins. Reapplying the latter changes.
|