# HG changeset patch # User Sylvain Thénault # Date 1287302685 -7200 # Node ID eca20b0121045c8da69ab5ce8bdb9caf04c44c94 # Parent 67bff8734a5b6851f3abbcda0f2d7c5b18ee68ce [test] take care to unicode __regid__ (usually when using _()), may lead to later unicode decode error diff -r 67bff8734a5b -r eca20b012104 devtools/testlib.py --- 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: