summaryrefslogtreecommitdiff
path: root/tests/test_urldispatch.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-31 01:36:26 -0500
committerMichael Merickel <michael@merickel.org>2018-11-12 21:39:23 -0600
commit6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf (patch)
tree5d115273784eb021e5550539e39f552672921329 /tests/test_urldispatch.py
parent7429fcb5a96aa10bbe86da08bd0b30c9292efdde (diff)
downloadpyramid-6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf.tar.gz
pyramid-6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf.tar.bz2
pyramid-6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf.zip
initial work to remove py2 from the codebase
Diffstat (limited to 'tests/test_urldispatch.py')
-rw-r--r--tests/test_urldispatch.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py
index 772250e89..b50e86b99 100644
--- a/tests/test_urldispatch.py
+++ b/tests/test_urldispatch.py
@@ -1,6 +1,6 @@
import unittest
from pyramid import testing
-from pyramid.compat import text_, PY2
+from pyramid.compat import text_
class TestRoute(unittest.TestCase):
@@ -132,10 +132,7 @@ class RoutesMapperTests(unittest.TestCase):
from pyramid.exceptions import URLDecodeError
mapper = self._makeOne()
- if PY2:
- path_info = b'\xff\xfe\xe6\x00'
- else:
- path_info = b'\xff\xfe\xe6\x00'.decode('latin-1')
+ path_info = b'\xff\xfe\xe6\x00'.decode('latin-1')
request = self._getRequest(PATH_INFO=path_info)
self.assertRaises(URLDecodeError, mapper, request)