Commit 86cf6e13 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py2/py3: use print() in erp5_ui_test_core.

parent d5b2d56b
...@@ -12,11 +12,11 @@ if getattr(context.MailHost, "getMessageList", None) is None: ...@@ -12,11 +12,11 @@ if getattr(context.MailHost, "getMessageList", None) is None:
message_list = context.MailHost.getMessageList() message_list = context.MailHost.getMessageList()
for mail in message_list: for mail in message_list:
for part in mail: for part in mail:
print part print(part)
print "="*79 print("="*79)
print "" print("")
print "Total messages: %s" %len(message_list) print("Total messages: %s" %len(message_list))
# If messages "looks like html", zope will set content type to text/html, # If messages "looks like html", zope will set content type to text/html,
# and the assertTextPresent from selenium will be applied after the emails # and the assertTextPresent from selenium will be applied after the emails
......
...@@ -10,5 +10,4 @@ try: ...@@ -10,5 +10,4 @@ try:
for x in portal_tests.objectValues('Zuite Results')]) for x in portal_tests.objectValues('Zuite Results')])
except BadRequest: except BadRequest:
pass pass
print "OK" return "OK"
return printed
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