diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 09:05:33 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 09:05:33 (GMT) |
commit | 13925008dc11f2a235627dc8c0440c0ce99171d9 (patch) | |
tree | 4746c36be25417c56cf86591bf222af49b7afdfd /Lib/doctest.py | |
parent | e3d09ff269330bd0076e3ab9cb81907fad717a68 (diff) | |
download | cpython-13925008dc11f2a235627dc8c0440c0ce99171d9.zip cpython-13925008dc11f2a235627dc8c0440c0ce99171d9.tar.gz cpython-13925008dc11f2a235627dc8c0440c0ce99171d9.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 7554a1f..fae333e 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -1210,7 +1210,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) @@ -2132,7 +2132,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', |