summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2002-11-30 03:53:15 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2002-11-30 03:53:15 (GMT)
commita59ef7bbe025b05f5db0973ebdf8d973bf639e26 (patch)
tree1ebb4ff2901fd1134c758ed086340e680632e843 /Lib/test/test_inspect.py
parent362c7cd07bd32f94e80e5ca954834cfbc1709953 (diff)
downloadcpython-a59ef7bbe025b05f5db0973ebdf8d973bf639e26.zip
cpython-a59ef7bbe025b05f5db0973ebdf8d973bf639e26.tar.gz
cpython-a59ef7bbe025b05f5db0973ebdf8d973bf639e26.tar.bz2
getdoc():
Remove leading whitespace from first line; remove leading and trailing blank lines from docstrings. (Patch 645938 submitted by David Goodger.)
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r--Lib/test/test_inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index ccfba34..d253f26 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -144,7 +144,7 @@ test(inspect.getsource(mod.StupidGit) == sourcerange(21, 46),
test(inspect.getdoc(mod.StupidGit) ==
'A longer,\n\nindented\n\ndocstring.', 'getdoc(mod.StupidGit)')
test(inspect.getdoc(git.abuse) ==
- 'Another\n\ndocstring\n\ncontaining\n\ntabs\n\n', 'getdoc(git.abuse)')
+ 'Another\n\ndocstring\n\ncontaining\n\ntabs', 'getdoc(git.abuse)')
test(inspect.getcomments(mod.StupidGit) == '# line 20\n',
'getcomments(mod.StupidGit)')