summaryrefslogtreecommitdiff
path: root/tests/basics/gen_yield_from_close.py.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/gen_yield_from_close.py.exp')
-rw-r--r--tests/basics/gen_yield_from_close.py.exp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/basics/gen_yield_from_close.py.exp b/tests/basics/gen_yield_from_close.py.exp
new file mode 100644
index 000000000..a44d1353d
--- /dev/null
+++ b/tests/basics/gen_yield_from_close.py.exp
@@ -0,0 +1,20 @@
+-1
+1
+StopIteration
+-1
+1
+2
+leaf caught GeneratorExit and swallowed it
+delegating caught GeneratorExit
+StopIteration
+-1
+1
+2
+leaf caught GeneratorExit and raised StopIteration instead
+delegating caught GeneratorExit
+StopIteration
+123
+RuntimeError
+0
+1
+close