diff options
author | Georg Brandl <georg@python.org> | 2008-05-18 16:32:48 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-18 16:32:48 +0000 |
commit | 8632cc2573eec74d610d18ae978e349dcc778154 (patch) | |
tree | 187a242f1df199d3e6021193c4c986392864ba26 /Lib/test/pydoc_mod.py | |
parent | 1356e096637d71f628670d91a148603bb9ed2889 (diff) | |
download | cpython-git-8632cc2573eec74d610d18ae978e349dcc778154.tar.gz |
GHOP #121: improve test_pydoc, by Benjamin Peterson.
Diffstat (limited to 'Lib/test/pydoc_mod.py')
-rw-r--r-- | Lib/test/pydoc_mod.py | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Lib/test/pydoc_mod.py b/Lib/test/pydoc_mod.py new file mode 100644 index 0000000000..8601e3f7ab --- /dev/null +++ b/Lib/test/pydoc_mod.py @@ -0,0 +1,54 @@ +"""This is a test module for test_pydoc""" + +__author__ = "Benjamin Peterson" +__credits__ = "Nobody" +__version__ = "1.2.3.4" + + +class A: + """Hello and goodbye""" + def __init__(): + """Wow, I have no function!""" + pass + +class B(object): + NO_MEANING = "eggs" + pass + +def doc_func(): + """ + This function solves all of the world's problems: + hunger + lack of Python + war + """ + +def nodoc_func(): + pass +"""This is a test module for test_pydoc""" + +__author__ = "Benjamin Peterson" +__credits__ = "Nobody" +__version__ = "1.2.3.4" + + +class A: + """Hello and goodbye""" + def __init__(): + """Wow, I have no function!""" + pass + +class B(object): + NO_MEANING = "eggs" + pass + +def doc_func(): + """ + This function solves all of the world's problems: + hunger + lack of Python + war + """ + +def nodoc_func(): + pass |