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>
<https://bugs.python.org/issue24925>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to