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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, pitrou
Date 2008-07-29.14:28:05
SpamBayes Score 0.019010205
Marked as misclassified No
Message-id <1217341686.78.0.389401874456.issue3462@psf.upfronthosting.co.za>
In-reply-to
Content
Here is another patch that modifies doctest itself.
Note that the _ is cleared only if "clear_globs" is True, which makes
sense IMO.

Index: Lib/doctest.py
===================================================================
--- Lib/doctest.py      (revision 65283)
+++ Lib/doctest.py      (working copy)
@@ -1360,6 +1360,7 @@
             linecache.getlines = self.save_linecache_getlines
             if clear_globs:
                 test.globs.clear()
+                __builtins__['_'] = None

     #/////////////////////////////////////////////////////////////////
     # Summarization
History
Date User Action Args
2008-07-29 14:28:06amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, benjamin.peterson
2008-07-29 14:28:06amaury.forgeotdarcsetmessageid: <1217341686.78.0.389401874456.issue3462@psf.upfronthosting.co.za>
2008-07-29 14:28:06amaury.forgeotdarclinkissue3462 messages
2008-07-29 14:28:05amaury.forgeotdarccreate