Message70396
| 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: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 |
|