mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Unicode 9.0.0
Not completely mechanical since support for East Asian Width changes—emoji codepoints became Wide—had to be added to unicodedata.
This commit is contained in:
parent
7ec64562b2
commit
6775231597
10 changed files with 26910 additions and 25252 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue