Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: 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 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3462> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com