[issue4657] Doctest gets line numbers wrongs with <> in name

2020-11-22 Thread Irit Katriel
Irit Katriel added the comment: I tested on 3.10 (macos) and can confirm that it is fixed. Details: I changed _run_object_doctest as Nick explained, and made it display the output of the finder.find() call - the line number was the same with and without the <>s. -- nosy: +iritkatri

[issue4657] Doctest gets line numbers wrongs with <> in name

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue4657] Doctest gets line numbers wrongs with <> in name

2011-03-31 Thread R. David Murray
R. David Murray added the comment: I have a vague memory of changing some code, in linecache I think, that involved anonymous names. I might have fixed it by accident. -- nosy: +r.david.murray ___ Python tracker

[issue4657] Doctest gets line numbers wrongs with <> in name

2011-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: Note that this appears to have been fixed already in the 3.x series (I haven't investigated the differences to see what makes this a 2.x only problem) -- versions: +Python 2.7 ___ Python tracker

[issue4657] Doctest gets line numbers wrongs with <> in name

2010-07-31 Thread Nick Coghlan
Nick Coghlan added the comment: On Sat, Jul 31, 2010 at 9:30 PM, Mark Lawrence wrote: > > Mark Lawrence 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

[issue4657] Doctest gets line numbers wrongs with <> in name

2010-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: @Nick: could you provide a patch that addresses this issue? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue4657] Doctest gets line numbers wrongs with <> in name

2008-12-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4657] Doctest gets line numbers wrongs with <> in name

2008-12-14 Thread Nick Coghlan
New submission from Nick Coghlan : When writing the unit tests for running doctests from inside a zipfile, I initially had "" as the name being passed to the doctest.DocTestFinder.find method. With that name, the line numbers coming back for all of the examples were being incremented by 1 beyond