[Python-checkins] python/dist/src/Lib/test test_unicode.py,1.74,1.74.2.1
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Sun, 05 Jan 2003 15:07:43 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv9982
Modified Files:
Tag: r23a1-branch
test_unicode.py
Log Message:
Skip exception-propagation test if encoding isn't ascii.
Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.74
retrieving revision 1.74.2.1
diff -C2 -d -r1.74 -r1.74.2.1
*** test_unicode.py 29 Dec 2002 19:44:06 -0000 1.74
--- test_unicode.py 5 Jan 2003 23:07:39 -0000 1.74.2.1
***************
*** 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.'
--- 435,445 ----
vereq((u'' in u'abc'), True)
vereq(('' in u'abc'), True)
! if sys.getdefaultencoding() == 'ascii':
! try:
! u'\xe2' in 'g\xe2teau'
! except UnicodeError:
! pass
! else:
! print '*** contains operator does not propagate UnicodeErrors'
print 'done.'