Skip to content
Snippets Groups Projects
Commit 0c9d4523 authored by Damien George's avatar Damien George
Browse files

py/vm: Fix case of throwing GeneratorExit type into yield-from.

mp_make_raise_obj must be used to convert a possible exception type to an
instance object, otherwise the VM may raise a non-exception object.

An existing test is adjusted to test this case, with the original test
already moved to generator_throw.py.
parent e6078dfe
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment