doctest construction generates duplicate test ids

Bug #682772 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
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)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Medium
Curtis Hovey (sinzui)
Changed in launchpad:
importance: Medium → Low
Revision history for this message
Brad Crittenden (bac) wrote :

Further:

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)
Changed in launchpad:
assignee: nobody → Brad Crittenden (bac)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-untestable
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
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.