diff --git a/tests/iter_split_test.py b/tests/iter_split_test.py index 6178ef0c..ee5e97d9 100644 --- a/tests/iter_split_test.py +++ b/tests/iter_split_test.py @@ -6,6 +6,12 @@ import mitogen.core import testlib +try: + next +except NameError: + def next(it): + return it.next() + class IterSplitTest(unittest2.TestCase): func = staticmethod(mitogen.core.iter_split)