diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:09:02 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:09:02 (GMT) |
commit | e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715 (patch) | |
tree | 1ceec154b81d1404ebe43a37d9758df8d1c3380a /Lib/test/test_inspect.py | |
parent | e86a59af886d6c0f58f53e42878a25e48627fed1 (diff) | |
download | cpython-e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715.zip cpython-e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715.tar.gz cpython-e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715.tar.bz2 |
Patch #711902: Cause pydoc to show data descriptor __doc__ strings.
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index d253f26..33e0b0d 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -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)') |