summaryrefslogtreecommitdiff
path: root/test/lib/testing.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/testing.py')
-rw-r--r--test/lib/testing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/testing.py b/test/lib/testing.py
index e30603f6e..15f85aaf8 100644
--- a/test/lib/testing.py
+++ b/test/lib/testing.py
@@ -522,7 +522,7 @@ def assert_raises_message(except_cls, msg, callable_, *args, **kwargs):
callable_(*args, **kwargs)
assert False, "Callable did not raise an exception"
except except_cls, e:
- assert re.search(msg, unicode(e)), u"%r !~ %s" % (msg, e)
+ assert re.search(msg, unicode(e), re.UNICODE), u"%r !~ %s" % (msg, e)
print unicode(e).encode('utf-8')
def fail(msg):