comments in doctests offset pocketlint's line numbers

Bug #619925 reported by Edwin Grubbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pocket-lint
Fix Released
Low
Unassigned

Bug Description

I just upgraded to pocketlint 0.5.4-0ppa0, and I noticed that line 182 of lp/registry/docs/vocabularies.txt is several lines above the moin header that actually causes the error. I was able to recreate the problem with this smaller sample using comments in the doctest.

--------------------------------------------------------------------------------------------
Mailing lists are not active when they are first registered.

    >>> # These are the convoluted steps to create some mailing lists. We
    >>> # can't use the shortcuts that other related tests use because those
    >>> # leave the list in the ACTIVE state and we want to check things
    >>> # before they get to that state.

=== DistroSeriesVocabulary ===

Reflects the available distribution series. Results are ordered by
`name`

Curtis Hovey (sinzui)
Changed in pocket-lint:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Curtis Hovey (sinzui)
Curtis Hovey (sinzui)
Changed in pocket-lint:
assignee: Curtis Hovey (sinzui) → nobody
Curtis Hovey (sinzui)
Changed in pocket-lint:
importance: Medium → Low
Revision history for this message
Curtis Hovey (sinzui) wrote :

DocTestParser drops comments in examples. It expects source code an want sections. I suppose the design assumes that comments belong in the narrative, not in example code users are expected to copy.

Revision history for this message
Curtis Hovey (sinzui) wrote :

Since comments in doctest examples are bad form, the real issue here is that pocketlint does not report that the comment should be removed.

Changed in pocket-lint:
status: Triaged → Won't Fix
status: Won't Fix → Triaged
Curtis Hovey (sinzui)
Changed in pocket-lint:
status: Triaged → In Progress
milestone: none → future
assignee: nobody → Curtis Hovey (sinzui)
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in pocket-lint:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in pocket-lint:
assignee: Curtis Hovey (sinzui) → nobody
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.