From a7ef4a56e0e72b3cb3aa2db7e6bb4417fced9e6f Mon Sep 17 00:00:00 2001 From: "Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)" Date: Fri, 9 Nov 2018 23:09:08 +0530 Subject: Fixed #29920 -- Added a test for smart_urlquote()'s UnicodeError branch. --- tests/utils_tests/test_html.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 94b8f946cc..8057fdc051 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -183,6 +183,7 @@ class TestUtilsHtml(SimpleTestCase): '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: -- cgit v1.3