Py<=2.5 test fix
authorStefan Behnel <scoder@users.berlios.de>
Fri, 10 Dec 2010 23:05:22 +0000 (00:05 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 10 Dec 2010 23:05:22 +0000 (00:05 +0100)
tests/run/generators.pyx

index 0abd298deba81783651b84f937d5c63ce592f7ec..02f519d4080be531dec2860a27ea47cce28fa936 100644 (file)
@@ -1,3 +1,10 @@
+
+try:
+    from builtins import next # Py3k
+except ImportError:
+    def next(it):
+        return it.next()
+
 def very_simple():
     """
     >>> x = very_simple()