Browse Source

Convert to Python 3: `object.next` -> `object.__next__`

Alois Mahdal 1 year ago
parent
commit
ae188959b1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/test_hoover.py

+ 1
- 1
tests/test_hoover.py View File

@@ -380,7 +380,7 @@ class CartmanTest(unittest.TestCase):
380 380
             def __iter__(self):
381 381
                 return self
382 382
 
383
-            def next(self):
383
+            def __next__(self):
384 384
                 try:
385 385
                     item = self.items[self.n]
386 386
                 except IndexError: