[Python-checkins] python/dist/src/Lib/test test_unicode.py,1.71,1.72

lemburg@users.sourceforge.net lemburg@users.sourceforge.net
Wed, 23 Oct 2002 02:02:48 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv2038/Lib/test

Modified Files:
	test_unicode.py 
Log Message:
Fix for bug #626172:  crash using unicode latin1 single char

Python 2.2.3 candidate.



Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** test_unicode.py	14 Sep 2002 09:19:53 -0000	1.71
--- test_unicode.py	23 Oct 2002 09:02:46 -0000	1.72
***************
*** 435,438 ****
--- 435,444 ----
  vereq((u'' in u'abc'), True)
  vereq(('' in u'abc'), True)
+ try:
+     u'\xe2' in 'g\xe2teau'
+ except UnicodeError:
+     pass
+ else:
+     print '*** contains operator does not propagate UnicodeErrors'
  print 'done.'