mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
GHOP #121: improve test_pydoc, by Benjamin Peterson.
This commit is contained in:
parent
1356e09663
commit
8632cc2573
2 changed files with 317 additions and 33 deletions
54
Lib/test/pydoc_mod.py
Normal file
54
Lib/test/pydoc_mod.py
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue