changeset: 78968:c5fc49bc7a5f branch: 2.7 user: R David Murray date: Mon Sep 10 11:20:47 2012 -0400 files: Lib/test/sample_doctest_no_docstrings.py Lib/test/sample_doctest_no_doctests.py description: #14649: add sample files omitted from previous checkin. diff -r cac191b37e78 -r c5fc49bc7a5f Lib/test/sample_doctest_no_docstrings.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lib/test/sample_doctest_no_docstrings.py Mon Sep 10 11:20:47 2012 -0400 @@ -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 -r cac191b37e78 -r c5fc49bc7a5f Lib/test/sample_doctest_no_doctests.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lib/test/sample_doctest_no_doctests.py Mon Sep 10 11:20:47 2012 -0400 @@ -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

AltStyle によって変換されたページ (->オリジナル) /