summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-10-11 22:42:28 +0000
committerMartin v. Löwis <martin@v.loewis.de>2010-10-11 22:42:28 +0000
commitbaecd7243ad2d671fa6f675777dfe7094e8c5c39 (patch)
treea4e6b946feafacd5c5f1bccd8a30d69fa7dd6922 /Lib
parente8930228c7482d39faf24f4a805c37ff7ca9223a (diff)
downloadcpython-git-baecd7243ad2d671fa6f675777dfe7094e8c5c39.tar.gz
Upgrade to Unicode 6.0.0.
makeunicodedata.py: download all data files from unicode.org, switch to extracting Unihan data from zip file. Read linebreakprops and derivednormalizationprops even for old versions, even though they are not used in delta records. test:unicode.py: U+11000 is now assigned, use U+14000 instead.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_unicode.py2
-rw-r--r--Lib/test/test_unicodedata.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index ff90745c5e..5e96ba8b63 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -1349,7 +1349,7 @@ class UnicodeTest(string_tests.CommonTest,
def test_printable_repr(self):
self.assertEqual(repr('\U00010000'), "'%c'" % (0x10000,)) # printable
- self.assertEqual(repr('\U00011000'), "'\\U00011000'") # nonprintable
+ self.assertEqual(repr('\U00014000'), "'\\U00014000'") # nonprintable
def test_expandtabs_overflows_gracefully(self):
# This test only affects 32-bit platforms because expandtabs can only take
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index d7a1eca104..fd8a4c6ffb 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 = '4504dffd035baea02c5b9de82bebc3d65e0e0baf'
+ expectedchecksum = '21b90f1aed00081b81ca7942b22196af090015a0'
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 = 'e89a6380093a00a7685ac7b92e7367d737fcb79b'
+ expectedchecksum = 'c23dfc0b5eaf3ca2aad32d733de96bb182ccda50'
def test_function_checksum(self):
data = []
h = hashlib.sha1()