SF bug [#467336] doctest failures w/ new-style classes.

Taught doctest about static methods, class methods, and property docstrings
in new-style classes.  As for inspect.py/pydoc.py before it, the new stuff
needed didn't really fit into the old architecture (but was less of a
strain to force-fit here).
New-style class docstrings still aren't found, but that's the subject
of a different bug and I want to fix that right instead of hacking around
it in doctest.
This commit is contained in:
Tim Peters 2001-10-03 04:08:26 +00:00
parent f49a91340a
commit 17111f3b24
4 changed files with 167 additions and 8 deletions

View file

@ -101,7 +101,10 @@ class PyclbrTest(unittest.TestCase):
def test_easy(self):
self.checkModule('pyclbr')
self.checkModule('doctest',
ignore=['_isclass', '_isfunction', '_ismodule'])
ignore=['_isclass',
'_isfunction',
'_ismodule',
'_classify_class_attrs'])
self.checkModule('rfc822')
self.checkModule('xmllib')
self.checkModule('difflib')