diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-10 15:39:34 (GMT) |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-10 15:39:34 (GMT) |
commit | cfb01a5ad070d49de242524ef77b4f61ae2f1fa7 (patch) | |
tree | d424dd626cca098ecb754188972180ab22b707e0 | |
parent | a11c1fcd20452976233a31930467342e2e086c45 (diff) | |
download | cpython-cfb01a5ad070d49de242524ef77b4f61ae2f1fa7.zip cpython-cfb01a5ad070d49de242524ef77b4f61ae2f1fa7.tar.gz cpython-cfb01a5ad070d49de242524ef77b4f61ae2f1fa7.tar.bz2 |
Issue #12947: Backport doctest documentation change from 3.3.
-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 a1a9c2f..a1e270d 100644 --- a/Doc/library/doctest.rst +++ b/Doc/library/doctest.rst @@ -580,11 +580,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 @@ -597,7 +597,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 |