tests/basics/generator_pend_throw: Add test for just-started generator.
This commit is contained in:
parent
e800e4463d
commit
8e6113a188
@ -24,3 +24,8 @@ except Exception as e:
|
||||
print("raised", repr(e))
|
||||
|
||||
print("ret was:", v)
|
||||
|
||||
try:
|
||||
gen().pend_throw(ValueError())
|
||||
except TypeError:
|
||||
print("TypeError")
|
||||
|
@ -2,3 +2,4 @@
|
||||
1
|
||||
raised ValueError()
|
||||
ret was: None
|
||||
TypeError
|
||||
|
Loading…
x
Reference in New Issue
Block a user