[Python-checkins] CVS: python/dist/src/Lib/test test_generators.py,1.17.2.2,1.17.2.3

Guido van Rossum gvanrossum@users.sourceforge.net
2001年7月13日 14:49:35 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv22862
Modified Files:
 Tag: descr-branch
	test_generators.py 
Log Message:
Fix the expected output for assignment to a read-only attribute.
Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.17.2.2
retrieving revision 1.17.2.3
diff -C2 -r1.17.2.2 -r1.17.2.3
*** test_generators.py	2001年07月08日 04:30:29	1.17.2.2
--- test_generators.py	2001年07月13日 21:49:33	1.17.2.3
***************
*** 406,410 ****
 Traceback (most recent call last):
 ...
! TypeError: readonly attribute
 >>> def g():
 ... yield me.gi_running
--- 406,410 ----
 Traceback (most recent call last):
 ...
! TypeError: 'generator' object has only read-only attributes (assign to .gi_running)
 >>> def g():
 ... yield me.gi_running

AltStyle によって変換されたページ (->オリジナル) /