zope.testing should report line number instead of example number

Bug #339813 reported by Wolfgang Schnerring on 2009-03-09
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 3
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.

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

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.

Michael Howitz (mh-gocept) wrote :

Fixed in r99488 on trunk.

Changed in zope3:
status: New → Fix Committed
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  Edit
Everyone can see this information.

Other bug subscribers