summaryrefslogtreecommitdiff
path: root/tests/test_httpexceptions.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-11-14 21:26:39 -0600
committerMichael Merickel <michael@merickel.org>2018-11-14 21:27:08 -0600
commit78dcc6dff88829831ead187804ac9233eafab52e (patch)
tree9a75d95c7cd31c68e8df55b495d0ed7d0d9d2449 /tests/test_httpexceptions.py
parenta705f56c3ebf34f25ab567d85b7d5b421983aa4a (diff)
downloadpyramid-78dcc6dff88829831ead187804ac9233eafab52e.tar.gz
pyramid-78dcc6dff88829831ead187804ac9233eafab52e.tar.bz2
pyramid-78dcc6dff88829831ead187804ac9233eafab52e.zip
remove several places supporting bytes for py2
Diffstat (limited to 'tests/test_httpexceptions.py')
-rw-r--r--tests/test_httpexceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_httpexceptions.py b/tests/test_httpexceptions.py
index 195496e2e..48c4a22f3 100644
--- a/tests/test_httpexceptions.py
+++ b/tests/test_httpexceptions.py
@@ -67,6 +67,12 @@ class Test__no_escape(unittest.TestCase):
def test_not_basestring(self):
self.assertEqual(self._callFUT(42), '42')
+ def test_bytes(self):
+ self.assertEqual(
+ self._callFUT(b'/La Pe\xc3\xb1a/{x}'),
+ b'/La Pe\xc3\xb1a/{x}'.decode('utf-8'),
+ )
+
def test_unicode(self):
class DummyUnicodeObject(object):
def __unicode__(self):