[Python-checkins] python/dist/src/Lib/test test_unicode.py,1.74.2.1,1.74.2.2
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
2003年1月07日 15:23:35 -0800
- Previous message: [Python-checkins] python/dist/src/Mac/scripts BuildApplet.rsrc,1.6,1.6.18.1 BuildApplication.rsrc,1.6,1.6.18.1 ConfigurePython.rsrc,1.15,1.15.10.1 EditPythonPrefs.rsrc,1.15,1.15.18.1
- Next message: [Python-checkins] python/dist/src/Mac/Python macmain.c,1.81,1.81.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv31869
Modified Files:
Tag: r23a1-branch
test_unicode.py
Log Message:
Made "ascii" the default encoding for MacPython, as suggested by MvL, and ripped out my previous changes to test_unicode. Doing this for 2.3a1 should give people enough time to complain, if they want to, and then we can see whether we want to do anything about it.
Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.74.2.1
retrieving revision 1.74.2.2
diff -C2 -d -r1.74.2.1 -r1.74.2.2
*** test_unicode.py 5 Jan 2003 23:07:39 -0000 1.74.2.1
--- test_unicode.py 7 Jan 2003 23:23:32 -0000 1.74.2.2
***************
*** 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.'
--- 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.'
- Previous message: [Python-checkins] python/dist/src/Mac/scripts BuildApplet.rsrc,1.6,1.6.18.1 BuildApplication.rsrc,1.6,1.6.18.1 ConfigurePython.rsrc,1.15,1.15.10.1 EditPythonPrefs.rsrc,1.15,1.15.18.1
- Next message: [Python-checkins] python/dist/src/Mac/Python macmain.c,1.81,1.81.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]