Nick Coghlan <ncogh...@gmail.com> added the comment: On Sat, Jul 31, 2010 at 9:30 PM, Mark Lawrence <rep...@bugs.python.org> wrote: > > Mark Lawrence <breamore...@yahoo.co.uk> added the comment: > > @Nick: could you provide a patch that addresses this issue?
Probably, but the "don't do that" work around is trivial enough that my own motivation to fix it is really low (otherwise I would have fixed it by now). It's still a genuine bug though. Since my original post isn't all that helpful in reproducing it, I'll provide some more details for anyone else that wants to tackle it. To reproduce it, edit Lib/test/test_zipimport_support.py to pass "<anon>" instead of name as the second argument to the finder.find call inside _run_object_doctest(). Running "python -m test.regrtest test_zipimport_support" will fail (with 6 of 33 doctests failing as of 2.7) Then pass "anon" (no angle brackets) to see that the reported doctest errors are different (1 of 19 reported as failing in 2.7) and, unlike the errors with "<anon>" the error in this latter case is directly attributable to having the wrong module name in the pdb output. (Note: regrtest's "-v" option is actually more confusing than helpful in debugging this test case due to the sheer amount of output it generates from the doctest tests themselves) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4657> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com