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