[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.4,1.5
Guido van Rossum
gvanrossum@users.sourceforge.net
2001年8月10日 12:42:40 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv18211
Modified Files:
test_descr.py
Log Message:
Allow AttributeError as well as TypeError for attribute-less objects.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_descr.py 2001年08月09日 19:45:21 1.4
--- test_descr.py 2001年08月10日 19:42:38 1.5
***************
*** 482,486 ****
try:
a.foo = 12
! except TypeError:
pass
else:
--- 482,486 ----
try:
a.foo = 12
! except (AttributeError, TypeError):
pass
else: