Mercurial > hg
comparison tests/coverage.py @ 6047:a7178d4ed8ee
fix syntax in coverage.py, fixing run-tests.py -C
d0576d065993 accidentally broke things.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 08 Feb 2008 13:16:49 -0200 |
parents | d0576d065993 |
children | 6aaf5b1d8f15 |
comparison
equal
deleted
inserted
replaced
6046:588ad9227b63 | 6047:a7178d4ed8ee |
---|---|
216 # first line are excluded, then we exclude the else. | 216 # first line are excluded, then we exclude the else. |
217 lastprev = self.getLastLine(prevsuite) | 217 lastprev = self.getLastLine(prevsuite) |
218 firstelse = self.getFirstLine(suite) | 218 firstelse = self.getFirstLine(suite) |
219 for l in range(lastprev+1, firstelse): | 219 for l in range(lastprev+1, firstelse): |
220 if l in self.suite_spots: | 220 if l in self.suite_spots: |
221 self.doSuite(None, suite, l in exclude=self.excluded) | 221 self.doSuite(None, suite, exclude=l in self.excluded) |
222 break | 222 break |
223 else: | 223 else: |
224 self.doSuite(None, suite) | 224 self.doSuite(None, suite) |
225 | 225 |
226 def doElse(self, prevsuite, node): | 226 def doElse(self, prevsuite, node): |