Show More
@@ -267,11 +267,13 b' class parseindex2tests(unittest.TestCase' | |||
|
267 | 267 | appendrev(6) |
|
268 | 268 | self.assertEqual(len(index), 7) |
|
269 | 269 | |
|
270 |
del index[1: |
|
|
270 | del index[1:-1] | |
|
271 | 271 | |
|
272 | 272 | # assertions that failed before correction |
|
273 | 273 | self.assertEqual(len(index), 1) # was 4 |
|
274 | self.assertEqual(index.headrevs(), [0]) # gave ValueError | |
|
274 | headrevs = getattr(index, 'headrevs', None) | |
|
275 | if headrevs is not None: # not implemented in pure | |
|
276 | self.assertEqual(index.headrevs(), [0]) # gave ValueError | |
|
275 | 277 | |
|
276 | 278 | |
|
277 | 279 | if __name__ == '__main__': |
General Comments 0
You need to be logged in to leave comments.
Login now