|
8 | 8 |
|
9 | 9 | import hashlib
|
10 | 10 | from http.client import HTTPException
|
11 |
| -import random |
12 | 11 | import sys
|
13 | 12 | import unicodedata
|
14 | 13 | import unittest
|
@@ -217,21 +216,6 @@ def test_issue29456(self):
|
217 | 216 | self.assertEqual(self.db.normalize('NFC', u11a7_str_a), u11a7_str_b)
|
218 | 217 | self.assertEqual(self.db.normalize('NFC', u11c3_str_a), u11c3_str_b)
|
219 | 218 |
|
220 |
| - def test_is_normalized_unicode_3_2_0(self): |
221 |
| - sample_chrs = random.sample(range(0x110000), 100) |
222 |
| - for form in ('NFC', 'NFD', 'NFKC', 'NFKD'): |
223 |
| - with self.subTest(form=form): |
224 |
| - for x in sample_chrs: |
225 |
| - norm = self.db.ucd_3_2_0.normalize(form, chr(x)) |
226 |
| - self.assertTrue(self.db.ucd_3_2_0.is_normalized(form, norm)) |
227 |
| - |
228 |
| - def test_is_normalized_unicode_3_2_0_multicharacter(self): |
229 |
| - sample_chrs = random.sample(range(0x110000), 100) |
230 |
| - for form in ('NFC', 'NFD', 'NFKC', 'NFKD'): |
231 |
| - s = ''.join(map(chr, sample_chrs)) |
232 |
| - norm = self.db.ucd_3_2_0.normalize(form, s) |
233 |
| - self.assertTrue(self.db.ucd_3_2_0.is_normalized(form, norm)) |
234 |
| - |
235 | 219 | def test_east_asian_width(self):
|
236 | 220 | eaw = self.db.east_asian_width
|
237 | 221 | self.assertRaises(TypeError, eaw, b'a')
|
|
0 commit comments