mirror of
https://github.com/django/django.git
synced 2024-12-22 09:05:43 +00:00
Refs #36007 -- Added IDNA 2008 test case for URLValidator.
Test a domain that is valid under IDNA 2008 but not IDNA 2003. This helps verify that the branch in URLValidator which calls punycode() is not actually being used for IDNs. punycode() implements IDNA 2003, so the domain would fail to validate if that branch were active for IDNs.
This commit is contained in:
parent
78a55a04c9
commit
9a891c387f
@ -126,6 +126,7 @@ VALID_URLS = [
|
||||
"http://مثال.إختبار",
|
||||
"http://例子.测试",
|
||||
"http://उदाहरण.परीक्षा",
|
||||
"https://މިހާރު.com", # (valid in IDNA 2008 but not IDNA 2003)
|
||||
"http://-.~_!$&'()*+,;=%40:80%2f@example.com",
|
||||
"http://xn--7sbb4ac0ad0be6cf.xn--p1ai",
|
||||
"http://1337.net",
|
||||
|
Loading…
Reference in New Issue
Block a user