Message70396
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 |
|
Date |
User |
Action |
Args |
2008-07-29 14:28:06 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, benjamin.peterson |
2008-07-29 14:28:06 | amaury.forgeotdarc | set | messageid: <1217341686.78.0.389401874456.issue3462@psf.upfronthosting.co.za> |
2008-07-29 14:28:06 | amaury.forgeotdarc | link | issue3462 messages |
2008-07-29 14:28:05 | amaury.forgeotdarc | create | |
|