This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek, docs@python, sbt
Date 2012-08-12.14:04:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344780242.45.0.913812867436.issue15629@psf.upfronthosting.co.za>
In-reply-to
Content
One option for whitelisting files would be to subclass doctest.DocTestParser and pass an instance as the parser argument to doctest.DocFileSuite:

http://docs.python.org/dev/library/doctest.html#doctest.DocFileSuite

The custom parser could look for the per-file marker before falling back to the usual parsing logic.  This would give us the functionality we need without having to make changes to doctest.
History
Date User Action Args
2012-08-12 14:04:02chris.jerdoneksetrecipients: + chris.jerdonek, docs@python, sbt
2012-08-12 14:04:02chris.jerdoneksetmessageid: <1344780242.45.0.913812867436.issue15629@psf.upfronthosting.co.za>
2012-08-12 14:04:01chris.jerdoneklinkissue15629 messages
2012-08-12 14:04:01chris.jerdonekcreate