Skip to content

Commit

Permalink
Fixed #29920 -- Added a test for smart_urlquote()'s UnicodeError branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy authored and timgraham committed Nov 9, 2018
1 parent f62cf22 commit a7ef4a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/utils_tests/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def test_smart_urlquote(self):
'http://example.com/?q=http%3A%2F%2Fexample.com%2F%3Fx%3D1%26q%3Ddjango'),
('http://example.com/?q=http%3A%2F%2Fexample.com%2F%3Fx%3D1%26q%3Ddjango',
'http://example.com/?q=http%3A%2F%2Fexample.com%2F%3Fx%3D1%26q%3Ddjango'),
('http://.www.f oo.bar/', 'http://.www.f%20oo.bar/'),
)
# IDNs are properly quoted
for value, output in items:
Expand Down

0 comments on commit a7ef4a5

Please sign in to comment.