]> granicus.if.org Git - python/commitdiff
The message accompanying the TypeError exception on a readonly
authorGuido van Rossum <guido@python.org>
Fri, 10 Aug 2001 21:25:24 +0000 (21:25 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Aug 2001 21:25:24 +0000 (21:25 +0000)
attribute changed again.

Lib/test/test_generators.py

index 72a70ec4713b6d59ed3a53355387346a7e79befd..2476a275f9d94650ef2d2efa2fad0e241c1fb97b 100644 (file)
@@ -405,7 +405,7 @@ And more, added later.
 >>> i.gi_running = 42
 Traceback (most recent call last):
   ...
-TypeError: 'generator' object has only read-only attributes (assign to .gi_running)
+TypeError: readonly attribute
 >>> def g():
 ...     yield me.gi_running
 >>> me = g()