zope.testing should report line number instead of example number

Bug #339813 reported by Wolfgang Schnerring
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 3
Fix Released
Undecided
Unassigned

Bug Description

In tracebacks raised from a doctest, the number reported is the example number, which does not help a human much, not the line number, which would be much more useful.

Revision history for this message
Benji York (benji) wrote : Re: [Bug 339813] [NEW] zope.testing should report line number instead of example number

On Mon, Mar 9, 2009 at 3:40 AM, Wolfgang Schnerring <email address hidden> wrote:
> Public bug reported:
>
> In tracebacks raised from a doctest, the number reported is the example
> number, which does not help a human much, not the line number, which
> would be much more useful.

Is this unique to zope.testing or is it the behavior of (zope.testing's
forked) doctest?
--
Benji York
Senior Software Engineer
Zope Corporation

Revision history for this message
Michael Howitz (mh-gocept) wrote :

> Is this unique to zope.testing or is it the behavior of (zope.testing's
> forked) doctest?

It happens in zope/testing/doctest.py line 1348.

Revision history for this message
Michael Howitz (mh-gocept) wrote :

Fixed in r99488 on trunk.

Changed in zope3:
status: New → Fix Committed
Revision history for this message
Benji York (benji) wrote :

Fix released in 3.7.4.

Changed in zope3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.