summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/gen_yield_from_throw.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/gen_yield_from_throw.py')
-rw-r--r--tests/basics/gen_yield_from_throw.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/basics/gen_yield_from_throw.py b/tests/basics/gen_yield_from_throw.py
index 1f76e13f3c..063bed25e2 100644
--- a/tests/basics/gen_yield_from_throw.py
+++ b/tests/basics/gen_yield_from_throw.py
@@ -17,24 +17,6 @@ try:
except TypeError:
print("got TypeError from downstream!")
-# passing None as second argument to throw
-g = gen2()
-print(next(g))
-print(g.throw(ValueError, None))
-try:
- print(next(g))
-except TypeError:
- print("got TypeError from downstream!")
-
-# passing an exception instance as second argument to throw
-g = gen2()
-print(next(g))
-print(g.throw(ValueError, ValueError(123)))
-try:
- print(next(g))
-except TypeError:
- print("got TypeError from downstream!")
-
# thrown value is caught and then generator returns normally
def gen():
try: