From: Antoine Pitrou Date: Sun, 3 Apr 2011 22:50:01 +0000 (+0200) Subject: Improve error message in test X-Git-Tag: v3.3.0a1~2683 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43b21687a5f8d4fd9b4a99f7991cd6b2f48d8a83;p=thirdparty%2FPython%2Fcpython.git Improve error message in test --- diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index 94da785cc3e7..b889cd23941c 100644 --- a/Lib/sqlite3/test/hooks.py +++ b/Lib/sqlite3/test/hooks.py @@ -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))))