devtools/testlib.py
changeset 6524 eca20b012104
parent 6470 8936b6786fb9
child 6586 207dc5111af2
--- a/devtools/testlib.py	Sun Oct 17 10:04:03 2010 +0200
+++ b/devtools/testlib.py	Sun Oct 17 10:04:45 2010 +0200
@@ -742,6 +742,7 @@
                 msg = '[%s in %s] %s' % (klass, view.__regid__, exc)
             except:
                 msg = '[%s in %s] undisplayable exception' % (klass, view.__regid__)
+            msg = str(msg) # ensure no unicode
             if output is not None:
                 position = getattr(exc, "position", (0,))[0]
                 if position: