mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Speed up test_urlsplit_normalization (GH-26688)
This commit is contained in:
parent
92a5c0871b
commit
c0f2fcf9bb
1 changed files with 2 additions and 1 deletions
|
|
@ -1079,7 +1079,8 @@ def test_urlsplit_normalization(self):
|
|||
hex_chars = {'{:04X}'.format(ord(c)) for c in illegal_chars}
|
||||
denorm_chars = [
|
||||
c for c in map(chr, range(128, sys.maxunicode))
|
||||
if (hex_chars & set(unicodedata.decomposition(c).split()))
|
||||
if unicodedata.decomposition(c)
|
||||
and (hex_chars & set(unicodedata.decomposition(c).split()))
|
||||
and c not in illegal_chars
|
||||
]
|
||||
# Sanity check that we found at least one such character
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue