aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/gen_yield_from_throw.py
AgeCommit message (Collapse)Author
2019-10-04tests/basics: Add test for throw into yield-from with normal return.Damien George
This test was found by missing coverage of a branch in py/nativeglue.c.
2019-05-09py/objgenerator: Fix handling of None passed as 2nd arg to throw().Damien George
Fixes issue #4527.
2018-09-28tests/basics: Split out gen throw tests from yield-from-throw tests.Damien George
2018-09-20py/objgenerator: Implement PEP479, StopIteration convs to RuntimeError.Damien George
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.
2016-12-20tests/basics: Improve test coverage for generators.Rami Ali
2014-07-05tests: Rename test scripts, changing - to _ for consistency.Damien George
From now on, all new tests must use underscore. Addresses issue #727.