diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-10 15:34:38 (GMT) |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-10 15:34:38 (GMT) |
commit | 3fa8c59024418e904abd4394b5ec47642f076ae3 (patch) | |
tree | c273a635f78c548b33998a36735ae452eefa9dc7 /Doc/library/doctest.rst | |
parent | 23a87de96f11661979ed805b5cf7bda639116747 (diff) | |
download | cpython-3fa8c59024418e904abd4394b5ec47642f076ae3.zip cpython-3fa8c59024418e904abd4394b5ec47642f076ae3.tar.gz cpython-3fa8c59024418e904abd4394b5ec47642f076ae3.tar.bz2 |
Issue #12947: Remove doctest directives from the doctest examples in the "Option Flag" section.
The doctest examples that illustrate the use of doctest option flags
independent of doctest directives should not display doctest directives.
Diffstat (limited to 'Doc/library/doctest.rst')
-rw-r--r-- | Doc/library/doctest.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst index 8f8e544..222c719 100644 --- a/Doc/library/doctest.rst +++ b/Doc/library/doctest.rst @@ -552,11 +552,11 @@ doctest decides whether actual output matches an example's expected output: both of these variations will work with the flag specified, regardless of whether the test is run under Python 2.7 or Python 3.2 (or later versions):: - >>> raise CustomError('message') #doctest: +IGNORE_EXCEPTION_DETAIL + >>> raise CustomError('message') Traceback (most recent call last): CustomError: message - >>> raise CustomError('message') #doctest: +IGNORE_EXCEPTION_DETAIL + >>> raise CustomError('message') Traceback (most recent call last): my_module.CustomError: message @@ -569,7 +569,7 @@ doctest decides whether actual output matches an example's expected output: earlier (those releases do not support :ref:`doctest directives <doctest-directives>` and ignore them as irrelevant comments). For example:: - >>> (1, 2)[3] = 'moo' #doctest: +IGNORE_EXCEPTION_DETAIL + >>> (1, 2)[3] = 'moo' Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: object doesn't support item assignment |