Commit 5994c4e6 authored by Stefan Behnel's avatar Stefan Behnel

remove test that doesn't apply to normal Python (only to the corresponding...

remove test that doesn't apply to normal Python (only to the corresponding .pyx test where it remains)
parent efac47de
......@@ -3,11 +3,6 @@
import cython
try:
from collections.abc import Generator
except ImportError:
from collections import Generator
def very_simple():
"""
......@@ -383,23 +378,3 @@ def test_yield_in_const_conditional_true():
"""
if True:
print((yield 1))
def test_generator_abc():
"""
>>> isinstance(test_generator_abc(), Generator)
True
>>> isinstance((lambda:(yield))(), Generator)
True
>>> try:
... from collections.abc import Generator
... except ImportError:
... from collections import Generator
>>> isinstance(test_generator_abc(), Generator)
True
>>> isinstance((lambda:(yield))(), Generator)
True
"""
yield 1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment