mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Edward Loper's cool and massive refactoring of doctest.py, merged from
the tim-doctest-merge-24a2 tag on the the tim-doctest-branch branch. We did development on the branch in case it wouldn't land in time for 2.4a2, but the branch looked good: Edward's tests passed there, ditto Python's tests, and ditto the Zope3 tests. Together, those hit doctest heavily.
This commit is contained in:
parent
c81c695dc9
commit
8485b56216
3 changed files with 2378 additions and 937 deletions
2300
Lib/doctest.py
2300
Lib/doctest.py
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
11
Misc/NEWS
11
Misc/NEWS
|
@ -83,6 +83,17 @@ Extension modules
|
|||
Library
|
||||
-------
|
||||
|
||||
- Thanks to Edward Loper, doctest has been massively refactored, and
|
||||
many new features were added. Full docs will appear later. For now
|
||||
the doctest module comments and new test cases give good coverage.
|
||||
The refactoring provides many hook points for customizing behavior
|
||||
(such as how to report errors, and how to compare expected to actual
|
||||
output). New features include a <BLANKLINE> marker for expected
|
||||
output containing blank lines, options to produce unified or context
|
||||
diffs when actual output doesn't match expectations, an option to
|
||||
normalize whitespace before comparing, and an option to use an
|
||||
ellipsis to signify "don't care" regions of output.
|
||||
|
||||
- Tkinter now supports the wish -sync and -use options.
|
||||
|
||||
- The following methods in time support passing of None: ctime(), gmtime(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue