OK, it's a bad title. I've got some code that contains this pattern in three places:
try: s = tok while not s.endswith('"'): s += ' ' + blt.next() except StopIteration: raise ElectionProfileError('bad blt item "%s" near election source; expected quoted string' % s) self.source = s.strip('"').strip(' ')
My test case invokes the except/raise path, but coverage (via nose, no --branch) reports the except/raise lines as uncovered. I conjecture, with no real confidence, that the issue is catching one exception and raising another, but I haven't done anything to verify that.
The full code is at http://code.google.com/p/droop/ (nose.sh will do a coverage report.)