summaryrefslogtreecommitdiffstats
path: root/Lib/test/sample_doctest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/sample_doctest.py')
-rw-r--r--Lib/test/sample_doctest.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/Lib/test/sample_doctest.py b/Lib/test/sample_doctest.py
index 25a1d37..e5adee0 100644
--- a/Lib/test/sample_doctest.py
+++ b/Lib/test/sample_doctest.py
@@ -1,9 +1,9 @@
"""This is a sample module that doesn't really test anything all that
- interesting
+ interesting.
-It simply has a few tests, some of which suceed and some of which fail.
+It simply has a few tests, some of which succeed and some of which fail.
-It's important that the numbers remain constance, as another test is
+It's important that the numbers remain constant as another test is
testing the running of these tests.
@@ -61,6 +61,16 @@ def y_is_one():
1
"""
+__test__ = {'good': """
+ >>> 42
+ 42
+ """,
+ 'bad': """
+ >>> 42
+ 666
+ """,
+ }
+
def test_suite():
import doctest
return doctest.DocTestSuite()