debugging 'duplicate test id' is hard.

Bug #1390082 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Wishlist
Jonathan Lange

Bug Description

python -m testtools.run discover -l
Traceback (most recent call last):
  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/home/robertc/personal/testtools/testtools/run.py", line 410, in <module>
    main(sys.argv, sys.stdout)
  File "/home/robertc/personal/testtools/testtools/run.py", line 407, in main
    stdout=stdout)
  File "/home/robertc/personal/testtools/testtools/run.py", line 208, in __init__
    self.parseArgs(argv)
  File "/home/robertc/personal/testtools/testtools/run.py", line 247, in parseArgs
    self._do_discovery(argv[2:])
  File "/home/robertc/personal/testtools/testtools/run.py", line 366, in _do_discovery
    self.test = sorted_tests(loaded)
  File "testtools/testsuite.py", line 314, in sorted_tests
    raise ValueError('Duplicate test id detected: %s' % (test_id,))
ValueError: Duplicate test id detected: testtools.tests.test_with_with.TestExpectedException.test_annotate

Thats clear but incomplete - it will happen again once thats fixed on the next duplicate etc - we could perhaps gather them all and report them at once.

Jonathan Lange (jml)
Changed in testtools:
assignee: nobody → Jonathan Lange (jml)
status: Triaged → In Progress
Revision history for this message
Jonathan Lange (jml) wrote :
Changed in testtools:
status: In Progress → Fix Committed
milestone: none → next
Jonathan Lange (jml)
Changed in testtools:
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.