[Python-checkins] python/dist/src/Lib/test/output test_exceptions,1.6,1.7
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Tue, 03 Sep 2002 13:24:18 -0700
Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv8495/Lib/test/output
Modified Files:
test_exceptions
Log Message:
Add a custom __str__ method to KeyError that applies repr() to the
missing key. (Also added a guard to SyntaxError__str__ to prevent
calling PyString_Check(NULL).)
Index: test_exceptions
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_exceptions,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_exceptions 1 Feb 2001 22:48:12 -0000 1.6
--- test_exceptions 3 Sep 2002 20:24:09 -0000 1.7
***************
*** 11,15 ****
spam
IndexError
! spam
KeyError
spam
--- 11,15 ----
spam
IndexError
! 'spam'
KeyError
spam