Commit 7f73d961 authored by Stefan Behnel's avatar Stefan Behnel

fix test

parent 1b6695a1
......@@ -398,9 +398,9 @@ def test_finally_return_none(raise_exc=None):
>>> gen = test_finally_return_none()
>>> next(gen)
'g2'
>>> gen.throw(ValueError())
Traceback (most recent call last):
StopIteration
>>> try: gen.throw(ValueError())
... except StopIteration: pass
... else: print("FAILED")
"""
# There used to be a refcount error in CPython when the return value
# stored in the StopIteration has a refcount of 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