mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
f49a91340a
commit
17111f3b24
4 changed files with 167 additions and 8 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue