summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_generators.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-28 21:44:53 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-28 21:44:53 (GMT)
commit42dae6a89bd24073ae1b66599180cc94f15ff232 (patch)
tree7df2ee86dc68b54e0b207eaa6862bfc82272e382 /Lib/test/test_generators.py
parentd84da1b67a12df114de2f76e0644174f07f2c834 (diff)
downloadcpython-42dae6a89bd24073ae1b66599180cc94f15ff232.zip
cpython-42dae6a89bd24073ae1b66599180cc94f15ff232.tar.gz
cpython-42dae6a89bd24073ae1b66599180cc94f15ff232.tar.bz2
Make readonly members defined in C throw an AttributeError on modification. This brings them into sync with Python-level attributes. Fixes bug #1687163.
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 7999034..12276be 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -400,7 +400,7 @@ And more, added later.
>>> i.gi_running = 42
Traceback (most recent call last):
...
-TypeError: readonly attribute
+AttributeError: readonly attribute
>>> def g():
... yield me.gi_running
>>> me = g()