diff options
Diffstat (limited to 'Lib/test/test_iterlen.py')
-rw-r--r-- | Lib/test/test_iterlen.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_iterlen.py b/Lib/test/test_iterlen.py index f77169f..b51263d 100644 --- a/Lib/test/test_iterlen.py +++ b/Lib/test/test_iterlen.py @@ -52,13 +52,13 @@ n = 10 class TestInvariantWithoutMutations(unittest.TestCase): def test_invariant(self): - it = self.it - for i in reversed(xrange(1, n+1)): - self.assertEqual(len(it), i) - it.next() - self.assertEqual(len(it), 0) - self.assertRaises(StopIteration, it.next) - self.assertEqual(len(it), 0) + it = self.it + for i in reversed(xrange(1, n+1)): + self.assertEqual(len(it), i) + it.next() + self.assertEqual(len(it), 0) + self.assertRaises(StopIteration, it.next) + self.assertEqual(len(it), 0) class TestTemporarilyImmutable(TestInvariantWithoutMutations): |