Commit 3cb078f3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use '%s' instead of %r for better readability of non-ASCII characters.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25355 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a07fb4d1
......@@ -186,18 +186,18 @@ class TestTranslation(ERP5TypeTestCase):
if error:
for key, item_list in error_dict.items():
if len(item_list) != 0:
self.logMessage('\n%r' % key.encode('utf-8'))
self.logMessage("\n'%s'" % key.encode('utf-8'))
self.logMessage('\t### Conflicting workflow with common states (ie, what user can see) ###')
for item in item_list:
# XXX Improve rendering
self.logMessage(
"\t%r\t%r\t%r\t%r" % \
"\t%r\t%r\t'%s'\t%r" % \
item)
self.logMessage('\n\t### All conflicting workflows (ie, problems asking to happen) ###')
for item in result_dict[key]:
# XXX Improve rendering
self.logMessage(
"\t%r\t%r\t%r" % \
"\t%r\t%r\t'%s'" % \
item)
self.fail(self.message)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment