summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-10-06 05:12:51 -0400
committerChris McDonough <chrism@plope.com>2011-10-06 05:12:51 -0400
commitd206187ac822274e4583a8d5514e7b28f91a319e (patch)
treec8b62f6a2bc33a005f912b71fb2652db3a14567d
parent71260a1b55f07c44f5a6275f34b6601cf66158db (diff)
downloadpyramid-d206187ac822274e4583a8d5514e7b28f91a319e.tar.gz
pyramid-d206187ac822274e4583a8d5514e7b28f91a319e.tar.bz2
pyramid-d206187ac822274e4583a8d5514e7b28f91a319e.zip
make tests pass on py3
-rw-r--r--pyramid/tests/test_scaffolds/test_template.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyramid/tests/test_scaffolds/test_template.py b/pyramid/tests/test_scaffolds/test_template.py
index 2943a0057..88a31e802 100644
--- a/pyramid/tests/test_scaffolds/test_template.py
+++ b/pyramid/tests/test_scaffolds/test_template.py
@@ -20,22 +20,22 @@ class TestTemplate(unittest.TestCase):
def test_template_renderer_expr_success(self):
inst = self._makeOne()
result = inst.template_renderer('{{a.lower()}}', {'a':'A'})
- self.assertEqual(result, 'a')
+ self.assertEqual(result, b'a')
def test_template_renderer_expr_success_via_pipe(self):
inst = self._makeOne()
result = inst.template_renderer('{{b|c|a.lower()}}', {'a':'A'})
- self.assertEqual(result, 'a')
+ self.assertEqual(result, b'a')
def test_template_renderer_expr_success_via_pipe2(self):
inst = self._makeOne()
result = inst.template_renderer('{{b|a.lower()|c}}', {'a':'A'})
- self.assertEqual(result, 'a')
+ self.assertEqual(result, b'a')
def test_template_renderer_expr_value_is_None(self):
inst = self._makeOne()
result = inst.template_renderer('{{a}}', {'a':None})
- self.assertEqual(result, '')
+ self.assertEqual(result, b'')
def test_module_dir(self):
import sys