Skip to content
Myr

Fix Py3 compat bug

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Also don't use unicode string here because the assertions below are written for native strings.

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 84f57b6 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/testsuite/templating.py+1 added-1 removed
311 unmodified lines
312 called = []313 class _TestHandler(logging.Handler):314 def handle(x, record):315 called.append(True)316 text = unicode(record.msg)316 text = str(record.msg)317 self.assert_('1: trying loader of application '318 '"blueprintapp"' in text)319 self.assert_('2: trying loader of blueprint "admin" '320 '(blueprintapp.apps.admin)' in text)
32 unmodified lines