Patches item #1521051, was opened at 2006-07-12 04:47 Message generated for change (Comment added) made by collinwinter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1521051&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Russell Keith-Magee (freakboy) Assigned to: Nobody/Anonymous (nobody) Summary: Extra configurability for doctest TestCases Initial Comment: DocTestRunner can be modified by end users to override default testing behaviour when executing doctests. Similarly, DocTestCase can be extended to override default setup/teardown behaviour. However, when a DocTestSuite is used to discover doctests, it is not possible to specify a user-modified Runner or TestCase. This patch (against svn revision 46884 of Lib/doctest.py) enables end users to specify the class that is used to construct DocTest test cases, and the runner that is used to run DocTest test cases. By default, DocTestSuite will continue to instantiate DocTestRunner and DocTestCase instances as before. ---------------------------------------------------------------------- Comment By: Collin Winter (collinwinter) Date: 2007-03-07 15:08 Message: Logged In: YES user_id=1344176 Originator: NO This looks good to me. Could you add some tests (to Lib/test/test_doctest.py) and update the docs (Doc/lib/libdoctest.tex)? Thanks for your contribution! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1521051&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches