summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-04-17 19:36:48 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-04-17 19:36:48 (GMT)
commit61e40bd897da8ab4bf2dffe817d0163e984c1e40 (patch)
treec8500cc600b30c400873e3c6c0a838d43b9d83fd /Lib
parente5fced781bbf892a498bd2422b49d9ac1a2d6352 (diff)
downloadcpython-61e40bd897da8ab4bf2dffe817d0163e984c1e40.zip
cpython-61e40bd897da8ab4bf2dffe817d0163e984c1e40.tar.gz
cpython-61e40bd897da8ab4bf2dffe817d0163e984c1e40.tar.bz2
Special case normalization of empty strings. Fixes #924361.
Backported to 2.3.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_unicodedata.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index 61b4ffb..8157fb3 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -170,6 +170,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):
def test_normalize(self):
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.