diff Lib/sqlite3/test/hooks.py @ 69121:23519bc7d752

Improve error message in test
author Antoine Pitrou <solipsis@pitrou.net>
date Mon, 04 Apr 2011 00:50:01 +0200
parents 575ee55081dc
children ce37570768f5
line wrap: on
line diff
--- a/Lib/sqlite3/test/hooks.py	Mon Apr 04 00:12:04 2011 +0200
+++ b/Lib/sqlite3/test/hooks.py	Mon Apr 04 00:50:01 2011 +0200
@@ -216,7 +216,8 @@
         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))))