[ python-Bugs-772091 ] doctest.DocTestSuite does not support __test__

SourceForge.net noreply at sourceforge.net
Sat Aug 7 07:42:01 CEST 2004


Bugs item #772091, was opened at 2003-07-16 01:04
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=772091&group_id=5470

Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 4
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Tim Peters (tim_one)
Summary: doctest.DocTestSuite does not support __test__

Initial Comment:
The DocTestSuite tool ignores a module level dictionary 
named __test__.  This limits its usefulness for the 
current python testsuite.

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

>Comment By: Tim Peters (tim_one)
Date: 2004-08-07 01:42

Message:
Logged In: YES 
user_id=31435

Thanks for pointing it out!  This got fixed by magic as part of 
the refactoring -- doctest's unittest support used to have its 
own code for finding things to test, entirely distinct from the 
test-finding code used by the rest of doctest.  Everything 
uses a new common DocTestFinder class now, so there 
should be no more differences in what the various wrappers 
find to test.

I added a test to ensure that DocTestSuite does indeed make 
tests from a __test__ dict (if present).

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2004-08-06 19:44

Message:
Logged In: YES 
user_id=80475

Perhaps this can be incorporated in your updates.

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

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


More information about the Python-bugs-list mailing list