From bb0084f5bef9b871a82f0451ed71131ffb7a43b3 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 3 Sep 2014 19:17:43 +0200 Subject: [PATCH] Fix Py3 compat bug Also don't use unicode string here because the assertions below are written for native strings. --- flask/testsuite/templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/testsuite/templating.py b/flask/testsuite/templating.py index 935c316b..435ace21 100644 --- a/flask/testsuite/templating.py +++ b/flask/testsuite/templating.py @@ -313,7 +313,7 @@ class TemplatingTestCase(FlaskTestCase): class _TestHandler(logging.Handler): def handle(x, record): called.append(True) - text = unicode(record.msg) + text = str(record.msg) self.assert_('1: trying loader of application ' '"blueprintapp"' in text) self.assert_('2: trying loader of blueprint "admin" '