tests/basics/generator_pend_throw: Add test for just-started generator.

This commit is contained in:
Damien George 2017-12-19 15:01:49 +11:00
parent e800e4463d
commit 8e6113a188
2 changed files with 6 additions and 0 deletions

View File

@ -24,3 +24,8 @@ except Exception as e:
print("raised", repr(e)) print("raised", repr(e))
print("ret was:", v) print("ret was:", v)
try:
gen().pend_throw(ValueError())
except TypeError:
print("TypeError")

View File

@ -2,3 +2,4 @@
1 1
raised ValueError() raised ValueError()
ret was: None ret was: None
TypeError