diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-15 06:53:47 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-15 06:53:47 (GMT) |
commit | 67752315979e1501b7088273b5a1aecc90b6fe67 (patch) | |
tree | d58ae750065bdff2b4f14e4fe8e627517d1622bc /Lib/test | |
parent | 7ec64562b243f3b44a876a346f658a1d4a66a95a (diff) | |
download | cpython-67752315979e1501b7088273b5a1aecc90b6fe67.zip cpython-67752315979e1501b7088273b5a1aecc90b6fe67.tar.gz cpython-67752315979e1501b7088273b5a1aecc90b6fe67.tar.bz2 |
Unicode 9.0.0
Not completely mechanical since support for East Asian Width changes—emoji
codepoints became Wide—had to be added to unicodedata.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_unicodedata.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index 6ecc913..4fc11ec 100644 --- a/Lib/test/test_unicodedata.py +++ b/Lib/test/test_unicodedata.py @@ -20,7 +20,7 @@ errors = 'surrogatepass' class UnicodeMethodsTest(unittest.TestCase): # update this, if the database changes - expectedchecksum = '5971760872b2f98bb9c701e6c0db3273d756b3ec' + expectedchecksum = 'c1fa98674a683aa8a8d8dee0c84494f8d36346e6' def test_method_checksum(self): h = hashlib.sha1() @@ -80,7 +80,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest): # Update this if the database changes. Make sure to do a full rebuild # (e.g. 'make distclean && make') to get the correct checksum. - expectedchecksum = '5e74827cd07f9e546a30f34b7bcf6cc2eac38c8c' + expectedchecksum = 'f891b1e6430c712531b9bc935a38e22d78ba1bf3' def test_function_checksum(self): data = [] h = hashlib.sha1() @@ -222,6 +222,10 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest): self.assertEqual(eaw('\u2010'), 'A') self.assertEqual(eaw('\U00020000'), 'W') + def test_east_asian_width_9_0_changes(self): + self.assertEqual(self.db.ucd_3_2_0.east_asian_width('\u231a'), 'N') + self.assertEqual(self.db.east_asian_width('\u231a'), 'W') + class UnicodeMiscTest(UnicodeDatabaseTest): def test_failed_import_during_compiling(self): |