doctest construction generates duplicate test ids

Bug #682772 reported by Robert Collins on 2010-11-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Brad Crittenden

Bug Description

See bug 682771 for why this matters.

Doctest construction needs to use the relative path to the file rather than just its basename, that way things will be unique.

Related branches

Gary Poster (gary) on 2010-11-29
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Medium
Curtis Hovey (sinzui) on 2011-10-02
Changed in launchpad:
importance: Medium → Low
Brad Crittenden (bac) wrote :


lifeless: testtools.clone_test_with_new_id can be used to assign a unique id. create the test (duplicative id); then clone it to a new id, and add the resulting new-id test into the suite, let the original get gc'd.

bac: are you suggesting doing that in filter_tests or in the various test_doc files?

lifeless: I was assuming local-to-the-duplicativeness with a sanity-check in the global test_suite() constructor to enforce uniqueness

Brad Crittenden (bac) on 2012-06-01
Changed in launchpad:
assignee: nobody → Brad Crittenden (bac)
status: Triaged → In Progress
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant) on 2012-06-14
tags: added: qa-untestable
removed: qa-needstesting
William Grant (wgrant) on 2012-06-14
Changed in launchpad:
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