Skip to content

Commit b3c1a8a

Browse files
committed
Refs #6 — Fix generator.next()
`next()` does not exist anymore in Python 3.
1 parent 14dae8c commit b3c1a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/demo_chunkator/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_chunk_uuid(self):
113113
def test_chunk_missing_pk(self):
114114
with self.assertRaises(MissingPkFieldException):
115115
result = chunkator(User.objects.all().values("name"), 10)
116-
result.next()
116+
six.next(result)
117117

118118

119119
class ChunkatorWhereTest(TestCase):

0 commit comments

Comments
 (0)