summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/gen_yield_from_throw.py
Commit message (Collapse)AuthorAge
* tests/basics: Split out generator.throw tests that pass multiple args.Damien George2024-05-27
| | | | | | | | The three-argument form of `.throw()` is deprecated since CPython 3.12. So split out into separate tests (with .exp files) the parts of the generator tests that test more than one argument. Signed-off-by: Damien George <damien@micropython.org>
* tests/basics: Add test for throw into yield-from with normal return.Damien George2019-10-04
| | | | This test was found by missing coverage of a branch in py/nativeglue.c.
* py/objgenerator: Fix handling of None passed as 2nd arg to throw().Damien George2019-05-09
| | | | Fixes issue #4527.
* tests/basics: Split out gen throw tests from yield-from-throw tests.Damien George2018-09-28
|
* py/objgenerator: Implement PEP479, StopIteration convs to RuntimeError.Damien George2018-09-20
| | | | | | | | 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.
* tests/basics: Improve test coverage for generators.Rami Ali2016-12-20
|
* tests: Rename test scripts, changing - to _ for consistency.Damien George2014-07-05
From now on, all new tests must use underscore. Addresses issue #727.