Xavier de Gaye added the comment: The doctests are executed with 'test.globs' as globals which is set in the 'find' method of doctest.DocTestFinder, and cleared after each run (unless 'clear_globs' is false). One possible fix is to have test.regrtest 'find' a new test_runner before each run instead of always using the same one. This is what does the attached patch.
---------- keywords: +patch nosy: +xdegaye Added file: http://bugs.python.org/file34259/regrtest.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20746> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com