[Python-bugs-list] [ python-Bugs-467336 ] doctest failures w/ new-style classes

noreply@sourceforge.net noreply@sourceforge.net
Tue, 02 Oct 2001 21:11:39 -0700


Bugs item #467336, was opened at 2001-10-02 15:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467336&group_id=5470

Category: Python Library
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Tim Peters (tim_one)
Summary: doctest failures w/ new-style classes

Initial Comment:
doctest doesn't find docstrings for static or class 
methods in new-style classes, or for properties.  This 
is for the same reasons inspect.py/pydoc.py didn't 
understand these things (the old checks for types via 
types.py don't succeed).

Also doesn't find new-style class docstrings (but 
opened a different bug about that, since C.__doc__ 
being None when there is a docstring just doesn't seem 
right).


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2001-10-02 21:11

Message:
Logged In: YES 
user_id=31435

doctest now finds and runs docstrings associated with new-
style class static methods, class methods and properties:

Lib/doctest.py; new revision: 1.20
Lib/test/test_doctest2.py; new file
Lib/test/test_pyclbr.py; new revision: 1.6
Lib/test/test_support.py; new revision: 1.38

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467336&group_id=5470