Jurjen N.E. Bos <j...@users.sourceforge.net> added the comment:

I always use the following piece of code that can be trivially used to patch 
the source.
It basically looks for a using line in the test string and finds it in the 
source file. If there is a match, we know where we are. Otherwise it falls back 
to the "normal" way.

Added file: https://bugs.python.org/file47482/doctestfix.py

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to