Commit 8b80a612 authored by Stefan Behnel's avatar Stefan Behnel

Terminate generator in test to avoid having its exception state hang around,...

Terminate generator in test to avoid having its exception state hang around, which leads to exception leaks in Py3.3 for the pure Python comparison test.
parent c872b999
...@@ -164,6 +164,9 @@ def check_yield_in_except(): ...@@ -164,6 +164,9 @@ def check_yield_in_except():
True True
True True
True True
>>> next(g)
Traceback (most recent call last):
StopIteration
""" """
try: try:
yield 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