projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9f38fa
)
Py<=2.5 test fix
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 10 Dec 2010 23:05:22 +0000
(
00:05
+0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 10 Dec 2010 23:05:22 +0000
(
00:05
+0100)
tests/run/generators.pyx
patch
|
blob
|
history
diff --git
a/tests/run/generators.pyx
b/tests/run/generators.pyx
index 0abd298deba81783651b84f937d5c63ce592f7ec..02f519d4080be531dec2860a27ea47cce28fa936 100644
(file)
--- 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()