mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Patch #711902: Cause pydoc to show data descriptor __doc__ strings.
This commit is contained in:
parent
e86a59af88
commit
e59e2bab8f
5 changed files with 43 additions and 2 deletions
|
@ -61,6 +61,7 @@ class FesteringGob(MalodorousPervert, ParrotDroppings):
|
|||
# isbuiltin, isroutine, getmembers, getdoc, getfile, getmodule,
|
||||
# getsourcefile, getcomments, getsource, getclasstree, getargspec,
|
||||
# getargvalues, formatargspec, formatargvalues, currentframe, stack, trace
|
||||
# isdatadescriptor
|
||||
|
||||
from test.test_support import TestFailed, TESTFN
|
||||
import sys, imp, os, string
|
||||
|
@ -104,6 +105,8 @@ istest(inspect.ismethod, 'mod.StupidGit.abuse')
|
|||
istest(inspect.ismethod, 'git.argue')
|
||||
istest(inspect.ismodule, 'mod')
|
||||
istest(inspect.istraceback, 'tb')
|
||||
istest(inspect.isdatadescriptor, '__builtins__.file.closed')
|
||||
istest(inspect.isdatadescriptor, '__builtins__.file.softspace')
|
||||
test(inspect.isroutine(mod.spam), 'isroutine(mod.spam)')
|
||||
test(inspect.isroutine([].count), 'isroutine([].count)')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue