Test various bytes <=> unicode cases as requested in review

This commit is contained in:
Bruno Oliveira
2019-06-30 21:08:40 -03:00
parent 09dee292ca
commit a886015bfd
2 changed files with 33 additions and 6 deletions

View File

@@ -577,7 +577,7 @@ class ExceptionInfo(object):
)
if not re.search(regexp, value):
raise AssertionError(
"Pattern '{!s}' not found in '{!s}'".format(regexp, value)
u"Pattern '{}' not found in '{}'".format(regexp, value)
)
return True