diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 10:34:31 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 10:34:31 (GMT) |
commit | c2077b0d9b5bf99768c6f396bf7ae6c41b682465 (patch) | |
tree | 8a1dc9e646a99465f4f1c9961012d52ef183e653 /Lib/doctest.py | |
parent | 6905de14fef619767693f8bd91996bc7e99ca9fe (diff) | |
download | cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.zip cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.tar.gz cpython-c2077b0d9b5bf99768c6f396bf7ae6c41b682465.tar.bz2 |
#11565: Fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r-- | Lib/doctest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 5565aab..622f68d 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -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', |