summaryrefslogtreecommitdiff
path: root/Lib/test/test_generators.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2020-07-17 11:44:23 +0100
committerGitHub <noreply@github.com>2020-07-17 11:44:23 +0100
commitcb9879b948a19c9434316f8ab6aba9c4601a8173 (patch)
tree2456a68d16bda26efc7f4f00f6fe5b4f4889f42c /Lib/test/test_generators.py
parent8e836bb21ce73f0794fd769db5883c29680dfe47 (diff)
downloadcpython-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_generators.py')
-rw-r--r--Lib/test/test_generators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index 3bf1522808..a634ccd517 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -881,7 +881,7 @@ And more, added later.
>>> i.gi_running = 42
Traceback (most recent call last):
...
-AttributeError: readonly attribute
+AttributeError: attribute 'gi_running' of 'generator' objects is not writable
>>> def g():
... yield me.gi_running
>>> me = g()