summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Michael Larson <sethmichaellarson@gmail.com>2019-04-26 13:20:49 -0500
committerGitHub <noreply@github.com>2019-04-26 13:20:49 -0500
commit8200faaa860ee9188de4df9b46559041ac439ddf (patch)
tree6cb181ff906387443f9af617bb6f02baf4804661
parent1fad384535e62bd6c78fd9104d9fbab403d273ea (diff)
downloadurllib3-8200faaa860ee9188de4df9b46559041ac439ddf.tar.gz
Add tests for surrogates in other components
-rw-r--r--test/test_util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_util.py b/test/test_util.py
index 8f913933..715b9778 100644
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -144,6 +144,9 @@ class TestUtil(object):
# Unicode surrogates
u'http://\uD800.com',
u'http://\uDC00.com',
+ u'http://google.com/\uD800',
+ u'http://google.com?q=\uDC00',
+ u'http://google.com#\uDC00',
])
def test_invalid_url(self, url):
with pytest.raises(LocationParseError):