From 94f8429529184fd8e63d3d5274f5feed7e0e5542 Mon Sep 17 00:00:00 2001 From: Vitja Makarov Date: Sun, 17 Apr 2011 19:15:03 +0400 Subject: [PATCH] Generators tests are supported with python >=2.6 --- tests/run/generators.pyx | 4 ---- tests/run/generators_py.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/tests/run/generators.pyx b/tests/run/generators.pyx index cd1742c9..ef0e8020 100644 --- a/tests/run/generators.pyx +++ b/tests/run/generators.pyx @@ -7,10 +7,6 @@ except ImportError: def next(it): return it.next() -if hasattr(__builtins__, 'GeneratorExit'): - GeneratorExit = __builtins__.GeneratorExit -else: # < 2.5 - GeneratorExit = StopIteration def very_simple(): """ diff --git a/tests/run/generators_py.py b/tests/run/generators_py.py index ac364234..7fe48549 100644 --- a/tests/run/generators_py.py +++ b/tests/run/generators_py.py @@ -7,10 +7,6 @@ except ImportError: def next(it): return it.next() -if hasattr(__builtins__, 'GeneratorExit'): - GeneratorExit = __builtins__.GeneratorExit -else: # < 2.5 - GeneratorExit = StopIteration def very_simple(): """ -- 2.26.2