From 6cc6b2fc0498f244c12cb2550c462c5a90f1a8a7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 11 Dec 2010 00:05:22 +0100 Subject: [PATCH] Py<=2.5 test fix --- tests/run/generators.pyx | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.26.2