diff options
author | Seth Michael Larson <sethmichaellarson@gmail.com> | 2019-04-26 13:20:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 13:20:49 -0500 |
commit | 8200faaa860ee9188de4df9b46559041ac439ddf (patch) | |
tree | 6cb181ff906387443f9af617bb6f02baf4804661 | |
parent | 1fad384535e62bd6c78fd9104d9fbab403d273ea (diff) | |
download | urllib3-8200faaa860ee9188de4df9b46559041ac439ddf.tar.gz |
Add tests for surrogates in other components
-rw-r--r-- | test/test_util.py | 3 |
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): |