[Python-checkins]
python/dist/src/Lib/test test_unicodedata.py, 1.9, 1.10
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Sat Apr 17 15:36:51 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31584/Lib/test
Modified Files:
test_unicodedata.py
Log Message:
Special case normalization of empty strings. Fixes #924361.
Backported to 2.3.
Index: test_unicodedata.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicodedata.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_unicodedata.py 1 May 2003 17:45:53 -0000 1.9
--- test_unicodedata.py 17 Apr 2004 19:36:48 -0000 1.10
***************
*** 171,174 ****
--- 171,175 ----
self.assertRaises(TypeError, self.db.normalize)
self.assertRaises(ValueError, self.db.normalize, 'unknown', u'xx')
+ self.assertEqual(self.db.normalize('NFKC', u''), u'')
# The rest can be found in test_normalization.py
# which requires an external file.
More information about the Python-checkins
mailing list