Browse Source

Fix Py3 compat bug

Also don't use unicode string here because the assertions below are
written for native strings.
pull/1172/head
Markus Unterwaditzer 10 years ago
parent
commit
bb0084f5be
  1. 2
      flask/testsuite/templating.py

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

Loading…
Cancel
Save