mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
tests/basics/generator_pend_throw: Add test for just-started generator.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user