Fix Py3 compat bug

Also don't use unicode string here because the assertions below are
written for native strings.
This commit is contained in:
Markus Unterwaditzer 2014-09-03 19:17:43 +02:00
parent 84f57b6bda
commit bb0084f5be

View file

@ -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" '