Commit 019551db authored by Vitja Makarov's avatar Vitja Makarov

Add testcase for generator where yield is unreachable

parent 398b0bbd
# mode: run
# tag: generators unreachable
def with_yield_removed():
"""
>>> o = with_yield_removed()
>>> list(o)
[]
"""
return
yield
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