diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-10-06 21:03:20 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-10-06 21:03:20 (GMT) |
commit | 7d52079395263fa7a9e8b82da86d0c595ad71859 (patch) | |
tree | 0cf856947b09262d6f3591572343ec89649da3b9 /Lib | |
parent | e1b60d4849111f5e1bacb1cf511ec7e7e97c205b (diff) | |
download | cpython-7d52079395263fa7a9e8b82da86d0c595ad71859.zip cpython-7d52079395263fa7a9e8b82da86d0c595ad71859.tar.gz cpython-7d52079395263fa7a9e8b82da86d0c595ad71859.tar.bz2 |
Merged revisions 75272-75273 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75272 | amaury.forgeotdarc | 2009-10-06 21:56:32 +0200 (mar., 06 oct. 2009) | 5 lines
#1571184: makeunicodedata.py now generates the functions _PyUnicode_ToNumeric,
_PyUnicode_IsLinebreak and _PyUnicode_IsWhitespace.
It now also parses the Unihan.txt for numeric values.
........
r75273 | amaury.forgeotdarc | 2009-10-06 22:02:09 +0200 (mar., 06 oct. 2009) | 2 lines
Add Anders Chrigstrom to Misc/ACKS for his work on unicodedata.
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicodedata.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index a658d7b..61e49a5 100644 --- a/Lib/test/test_unicodedata.py +++ b/Lib/test/test_unicodedata.py @@ -21,7 +21,7 @@ errors = 'surrogatepass' class UnicodeMethodsTest(unittest.TestCase): # update this, if the database changes - expectedchecksum = '6ec65b65835614ec00634c674bba0e50cd32c189' + expectedchecksum = '0b915116051f3ed029a98542c2b7df63c9646272' def test_method_checksum(self): h = hashlib.sha1() @@ -80,7 +80,7 @@ class UnicodeDatabaseTest(unittest.TestCase): class UnicodeFunctionsTest(UnicodeDatabaseTest): # update this, if the database changes - expectedchecksum = '3136d5afd787dc2bcb1bdcac95e385349fbebbca' + expectedchecksum = 'd4169ccff998ebbd1ec007a0b3fbd66e5ccf0229' def test_function_checksum(self): data = [] @@ -119,6 +119,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest): self.assertEqual(self.db.numeric('9'), 9) self.assertEqual(self.db.numeric('\u215b'), 0.125) self.assertEqual(self.db.numeric('\u2468'), 9.0) + self.assertEqual(self.db.numeric('\ua627'), 7.0) self.assertEqual(self.db.numeric('\U00020000', None), None) self.assertRaises(TypeError, self.db.numeric) |