From: Stefan Behnel Date: Fri, 10 Dec 2010 23:05:22 +0000 (+0100) Subject: Py<=2.5 test fix X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cc6b2fc0498f244c12cb2550c462c5a90f1a8a7;p=cython.git Py<=2.5 test fix --- diff --git a/tests/run/generators.pyx b/tests/run/generators.pyx index 0abd298d..02f519d4 100644 --- a/tests/run/generators.pyx +++ b/tests/run/generators.pyx @@ -1,3 +1,10 @@ + +try: + from builtins import next # Py3k +except ImportError: + def next(it): + return it.next() + def very_simple(): """ >>> x = very_simple()