[Python-checkins] cpython (2.7): #14649: add sample files omitted from previous checkin.
r.david.murray
python-checkins at python.org
Mon Sep 10 17:20:58 CEST 2012
http://hg.python.org/cpython/rev/c5fc49bc7a5f
changeset: 78968:c5fc49bc7a5f
branch: 2.7
user: R David Murray <rdmurray at bitdance.com>
date: Mon Sep 10 11:20:47 2012 -0400
summary:
#14649: add sample files omitted from previous checkin.
files:
Lib/test/sample_doctest_no_docstrings.py | 12 +++++++++
Lib/test/sample_doctest_no_doctests.py | 15 ++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/Lib/test/sample_doctest_no_docstrings.py b/Lib/test/sample_doctest_no_docstrings.py
new file mode 100644
--- /dev/null
+++ b/Lib/test/sample_doctest_no_docstrings.py
@@ -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
--- /dev/null
+++ b/Lib/test/sample_doctest_no_doctests.py
@@ -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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list