mirror of
https://github.com/python/cpython.git
synced 2025-08-17 15:21:26 +00:00
#11565: Fix several typos. Patch by Piotr Kasprzyk.
This commit is contained in:
parent
6905de14fe
commit
c2077b0d9b
91 changed files with 125 additions and 125 deletions
|
@ -1217,7 +1217,7 @@ class DocTestRunner:
|
|||
# Process each example.
|
||||
for examplenum, example in enumerate(test.examples):
|
||||
|
||||
# If REPORT_ONLY_FIRST_FAILURE is set, then supress
|
||||
# If REPORT_ONLY_FIRST_FAILURE is set, then suppress
|
||||
# reporting after the first failure.
|
||||
quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
|
||||
failures > 0)
|
||||
|
@ -2186,7 +2186,7 @@ class DocTestCase(unittest.TestCase):
|
|||
caller can catch the errors and initiate post-mortem debugging.
|
||||
|
||||
The DocTestCase provides a debug method that raises
|
||||
UnexpectedException errors if there is an unexepcted
|
||||
UnexpectedException errors if there is an unexpected
|
||||
exception:
|
||||
|
||||
>>> test = DocTestParser().get_doctest('>>> raise KeyError\n42',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue