Damien George
27fe84e661
tests/basics: Add test for throw into yield-from with normal return.
...
This test was found by missing coverage of a branch in py/nativeglue.c.
2019-10-04 23:27:48 +10:00
Damien George
dac9d47671
py/objgenerator: Fix handling of None passed as 2nd arg to throw().
...
Fixes issue #4527 .
2019-05-09 13:40:28 +10:00
Damien George
e6078dfed2
tests/basics: Split out gen throw tests from yield-from-throw tests.
2018-09-28 11:35:31 +10:00
Damien George
3f6ffe059f
py/objgenerator: Implement PEP479, StopIteration convs to RuntimeError.
...
This commit implements PEP479 which disallows raising StopIteration inside
a generator to signal that it should be finished. Instead, the generator
should simply return when it is complete.
See https://www.python.org/dev/peps/pep-0479/ for details.
2018-09-20 15:36:59 +10:00
Rami Ali
5d06a74303
tests/basics: Improve test coverage for generators.
2016-12-20 16:19:56 +11:00
Damien George
539681fffd
tests: Rename test scripts, changing - to _ for consistency.
...
From now on, all new tests must use underscore.
Addresses issue #727 .
2014-07-05 06:14:29 +01:00