[Patches] [ python-Patches-466616 ] Exclude imported items from doctest
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 30 Sep 2001 13:31:52 -0700
Patches item #466616, was opened at 2001-09-30 13:31
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=466616&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Hochberg (tim-hochberg)
Assigned to: Nobody/Anonymous (nobody)
Summary: Exclude imported items from doctest
Initial Comment:
With this patch, functions and classes that have been
imported into a module are not scanned for docstrings
to test by testmod. These tests frequently fail
because they end up using the wrong globals.
The method used to test whether a function or class is
from a given module _does_ work with Jython (tested on
2.1a3). However, the current CVS version of doctest
doesn't work with Jython, so I tested this with the a
version of doctest from python 2.1 that had the same
mods that are in the enclosed patch.
Tests were added to the docstring of Tester.rundict to
assure that the exclusion works properly. An update to
the library documentation for doctest will be
posted "real soon now".
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=466616&group_id=5470