R. David Murray <rdmur...@bitdance.com> added the comment: It turns out that doctest patches linecache.getlines (which is not, by the way, a public interface of linecache according to the docs and the __all__ string) to retrieve the doctest source code. The special filename it uses to trigger this is not returned by getsourcefile but is returned by getfile.
So the issue4050 fix is not impacted, but the fix for this bug is not so straightforward. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6195> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com