]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#14649: add sample files omitted from previous checkin.
authorR David Murray <rdmurray@bitdance.com>
Mon, 10 Sep 2012 15:20:47 +0000 (11:20 -0400)
committerR David Murray <rdmurray@bitdance.com>
Mon, 10 Sep 2012 15:20:47 +0000 (11:20 -0400)
Lib/test/sample_doctest_no_docstrings.py [new file with mode: 0644]
Lib/test/sample_doctest_no_doctests.py [new file with mode: 0644]

diff --git a/Lib/test/sample_doctest_no_docstrings.py b/Lib/test/sample_doctest_no_docstrings.py
new file mode 100644 (file)
index 0000000..e4201ed
--- /dev/null
@@ -0,0 +1,12 @@
+# This is a sample module used for testing doctest.
+#
+# This module is for testing how doctest handles a module with no
+# docstrings.
+
+
+class Foo(object):
+
+    # A class with no docstring.
+
+    def __init__(self):
+        pass
diff --git a/Lib/test/sample_doctest_no_doctests.py b/Lib/test/sample_doctest_no_doctests.py
new file mode 100644 (file)
index 0000000..7daa572
--- /dev/null
@@ -0,0 +1,15 @@
+"""This is a sample module used for testing doctest.
+
+This module is for testing how doctest handles a module with docstrings
+but no doctest examples.
+
+"""
+
+
+class Foo(object):
+    """A docstring with no doctest examples.
+
+    """
+
+    def __init__(self):
+        pass