Commit 683aecd9 authored by Antoine Pitrou's avatar Antoine Pitrou

Improve error message in test

parent 61bce56a
......@@ -216,7 +216,8 @@ class TraceCallbackTests(unittest.TestCase):
con.execute("insert into foo(x) values (?)", (unicode_value,))
con.commit()
self.assertTrue(any(unicode_value in stmt for stmt in traced_statements),
"Unicode data garbled in trace callback")
"Unicode data %s garbled in trace callback: %s"
% (ascii(unicode_value), ', '.join(map(ascii, traced_statements))))
......
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