[Python-checkins] cpython: Improve error message in test
antoine.pitrou
python-checkins at python.org
Mon Apr 4 00:50:05 CEST 2011
http://hg.python.org/cpython/rev/23519bc7d752
changeset: 69121:23519bc7d752
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon Apr 04 00:50:01 2011 +0200
summary:
Improve error message in test
files:
Lib/sqlite3/test/hooks.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -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))))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list