Skip to content

Commit

Permalink
Refs #36007 -- Added IDNA 2008 test case for URLValidator.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
medmunds authored and sarahboyce committed Dec 13, 2024
1 parent 78a55a0 commit 9a891c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/validators/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"http://مثال.إختبار",
"http://例子.测试",
"http://उदाहरण.परीक्षा",
"https://މިހާރު.com", # (valid in IDNA 2008 but not IDNA 2003)
"http://-.~_!$&'()*+,;=%40:80%[email protected]",
"http://xn--7sbb4ac0ad0be6cf.xn--p1ai",
"http://1337.net",
Expand Down

0 comments on commit 9a891c3

Please sign in to comment.