diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-17 00:10:49 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-17 00:10:49 +1100 |
commit | aeb2655073970f8b51572cf033274800a67b23ee (patch) | |
tree | 7b7e6c4ffcb00b43229853b9f010d8a75d3a82af /tests/basics/iter0.py | |
parent | 40863fce6fe9fca50f5c31c340d688310a14653b (diff) | |
download | micropython-aeb2655073970f8b51572cf033274800a67b23ee.tar.gz micropython-aeb2655073970f8b51572cf033274800a67b23ee.zip |
py/runtime: Fix handling of throw() when resuming generator.
If GeneratorExit is injected as a throw-value then that should lead to
the close() method being called, if it exists. If close() does not exist
then throw() should not be called, and this patch fixes this.
Diffstat (limited to 'tests/basics/iter0.py')
0 files changed, 0 insertions, 0 deletions