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:
parent
84f57b6bda
commit
bb0084f5be
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue