Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cfb01a5a
Commit
cfb01a5a
authored
Oct 10, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #12947: Backport doctest documentation change from 3.3.
parent
a11c1fcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/library/doctest.rst
Doc/library/doctest.rst
+3
-3
No files found.
Doc/library/doctest.rst
View file @
cfb01a5a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment