cubicweb/devtools/testlib.py
branch3.26
changeset 12719 9fb4a71f119d
parent 12577 2508ba96fad2
child 12722 1a5eb9a9f5b4
--- a/cubicweb/devtools/testlib.py	Wed Jul 24 13:39:52 2019 +0200
+++ b/cubicweb/devtools/testlib.py	Tue Aug 06 14:26:17 2019 +0200
@@ -205,7 +205,7 @@
         pass
 
     def sendmail(self, fromaddr, recipients, msg):
-        MAILBOX.append(Email(fromaddr, recipients, msg))
+        MAILBOX.append(Email(fromaddr, recipients, msg.decode('utf-8')))
 
 
 cwconfig.SMTP = MockSMTP