]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12947: Backport doctest documentation change from 3.3.
authorChris Jerdonek <chris.jerdonek@gmail.com>
Wed, 10 Oct 2012 15:39:34 +0000 (08:39 -0700)
committerChris Jerdonek <chris.jerdonek@gmail.com>
Wed, 10 Oct 2012 15:39:34 +0000 (08:39 -0700)
Doc/library/doctest.rst

index a1a9c2f833cad1d5b23e2ac43744247feaf39fbb..a1e270dbf8fe2f672ade60ad1d7161ebecc21fc1 100644 (file)
@@ -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