diff options
author | Mark Shannon <mark@hotpy.org> | 2020-07-17 11:44:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 11:44:23 +0100 |
commit | cb9879b948a19c9434316f8ab6aba9c4601a8173 (patch) | |
tree | 2456a68d16bda26efc7f4f00f6fe5b4f4889f42c /Lib/test/test_yield_from.py | |
parent | 8e836bb21ce73f0794fd769db5883c29680dfe47 (diff) | |
download | cpython-git-cb9879b948a19c9434316f8ab6aba9c4601a8173.tar.gz |
bpo-40941: Unify implicit and explicit state in the frame and generator objects into a single value. (GH-20803)
* Merge gen and frame state variables into one.
* Replace stack pointer with depth in PyFrameObject. Makes code easier to read and saves a word of memory.
Diffstat (limited to 'Lib/test/test_yield_from.py')
-rw-r--r-- | Lib/test/test_yield_from.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_yield_from.py b/Lib/test/test_yield_from.py index 4735ef4bee..d105d8c6eb 100644 --- a/Lib/test/test_yield_from.py +++ b/Lib/test/test_yield_from.py @@ -938,6 +938,9 @@ class TestPEP380Operation(unittest.TestCase): res.append(g1.throw(MyErr)) except StopIteration: pass + except: + self.assertEqual(res, [0, 1, 2, 3]) + raise # Check with close class MyIt(object): def __iter__(self): |