summaryrefslogtreecommitdiff
path: root/tests/test_request.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-11-14 22:15:57 -0600
committerMichael Merickel <michael@merickel.org>2018-11-14 22:15:57 -0600
commit2f8ede09e52162e475aececf587b21e96a2b1a79 (patch)
treeb14ed0c012654af2b2a19d4043895816cb7021af /tests/test_request.py
parent78dcc6dff88829831ead187804ac9233eafab52e (diff)
downloadpyramid-2f8ede09e52162e475aececf587b21e96a2b1a79.tar.gz
pyramid-2f8ede09e52162e475aececf587b21e96a2b1a79.tar.bz2
pyramid-2f8ede09e52162e475aececf587b21e96a2b1a79.zip
move text_, bytes_ and ascii_ to pyramid.util and remove native_
Diffstat (limited to 'tests/test_request.py')
-rw-r--r--tests/test_request.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_request.py b/tests/test_request.py
index 60cc2b31a..484d86e01 100644
--- a/tests/test_request.py
+++ b/tests/test_request.py
@@ -1,8 +1,8 @@
import unittest
from pyramid import testing
-from pyramid.compat import text_, bytes_, native_
from pyramid.security import AuthenticationAPIMixin, AuthorizationAPIMixin
+from pyramid.util import text_, bytes_
class TestRequest(unittest.TestCase):
@@ -478,7 +478,7 @@ class Test_call_app_with_subpath_as_path_info(unittest.TestCase):
self.assertEqual(request.environ['PATH_INFO'], '/hello/')
def test_subpath_path_info_and_script_name_have_utf8(self):
- encoded = native_(text_(b'La Pe\xc3\xb1a'))
+ encoded = text_(b'La Pe\xc3\xb1a')
decoded = text_(bytes_(encoded), 'utf-8')
request = DummyRequest(
{'PATH_INFO': '/' + encoded, 'SCRIPT_NAME': '/' + encoded}