mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#14649: clarify DocTestSuite error when there are no docstrings.
Also adds tests to verify the documented behavior (which is probably a bug, as indicated in the added comments). Patch by Chris Jerdonek.
This commit is contained in:
parent
01beb69c7d
commit
5abd76a75d
6 changed files with 84 additions and 6 deletions
12
Lib/test/sample_doctest_no_docstrings.py
Normal file
12
Lib/test/sample_doctest_no_docstrings.py
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue