diff options
| author | Michael Merickel <michael@merickel.org> | 2018-11-14 19:13:07 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-11-14 19:13:19 -0600 |
| commit | 0b570220d9f442700eb97c5a5c4eca6ab03a1ee4 (patch) | |
| tree | 12f55f71443e90657dc13701e4b74b7a2b48e37b /tests/test_traversal.py | |
| parent | 8c0cbe3be52a56ba9dc8ab6ced028dab9b48b333 (diff) | |
| download | pyramid-0b570220d9f442700eb97c5a5c4eca6ab03a1ee4.tar.gz pyramid-0b570220d9f442700eb97c5a5c4eca6ab03a1ee4.tar.bz2 pyramid-0b570220d9f442700eb97c5a5c4eca6ab03a1ee4.zip | |
remove urllib.parse shims
Diffstat (limited to 'tests/test_traversal.py')
| -rw-r--r-- | tests/test_traversal.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_traversal.py b/tests/test_traversal.py index ed5e0031e..252e99f6f 100644 --- a/tests/test_traversal.py +++ b/tests/test_traversal.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- import unittest +from urllib.parse import quote from pyramid.testing import cleanUp -from pyramid.compat import text_, native_, url_quote +from pyramid.compat import text_, native_ class TraversalPathTests(unittest.TestCase): @@ -14,7 +15,7 @@ class TraversalPathTests(unittest.TestCase): def test_utf8(self): la = b'La Pe\xc3\xb1a' - encoded = url_quote(la) + encoded = quote(la) decoded = text_(la, 'utf-8') path = '/'.join([encoded, encoded]) result = self._callFUT(path) @@ -24,7 +25,7 @@ class TraversalPathTests(unittest.TestCase): from pyramid.exceptions import URLDecodeError la = text_(b'La Pe\xc3\xb1a', 'utf-8').encode('utf-16') - encoded = url_quote(la) + encoded = quote(la) path = '/'.join([encoded, encoded]) self.assertRaises(URLDecodeError, self._callFUT, path) |
