diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-06-23 18:24:13 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-06-23 18:24:13 (GMT) |
commit | 5707d508e1b589045ce1062da3497ad9653f1cf6 (patch) | |
tree | bc2ba43038f5011301e09cf2e78c213f2b3e6114 /Doc/whatsnew | |
parent | c00fffb659bc69666ba05025057e762cf24e76b0 (diff) | |
download | cpython-5707d508e1b589045ce1062da3497ad9653f1cf6.zip cpython-5707d508e1b589045ce1062da3497ad9653f1cf6.tar.gz cpython-5707d508e1b589045ce1062da3497ad9653f1cf6.tar.bz2 |
#11390: convert doctest CLI to argparse and add -o and -f options.
This provides a way to specify arbitrary doctest options when using
the CLI interface to process test files, just as one can when calling
testmod or testfile programmatically.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.4.rst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index b003c4e..22e60d9 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -173,8 +173,15 @@ instructions. doctest ------- -Added ``FAIL_FAST`` flag to halt test running as soon as the first failure is -detected. (Contributed by R. David Murray and Daniel Urban in :issue:`16522`.) +Added :data:`~doctest.FAIL_FAST` flag to halt test running as soon as the first +failure is detected. (Contributed by R. David Murray and Daniel Urban in +:issue:`16522`.) + +Updated the doctest command line interface to use :mod:`argparse`, and added +``-o`` and ``-f`` options to the interface. ``-o`` allows doctest options to +be specified on the command line, and ``-f`` is a shorthand for ``-o +FAIL_FAST`` (to parallel the similar option supported by the :mod:`unittest` +CLI). (Contributed by R. David Murray in :issue:`11390`.) functools |