summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-03 22:50:01 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-03 22:50:01 (GMT)
commit43b21687a5f8d4fd9b4a99f7991cd6b2f48d8a83 (patch)
tree9bb215800ac5ed03625ecaef484de06574a8113b /Lib/sqlite3
parent5bfa0622ec43c8e46ecde63cf9ed627952a0c398 (diff)
downloadcpython-43b21687a5f8d4fd9b4a99f7991cd6b2f48d8a83.zip
cpython-43b21687a5f8d4fd9b4a99f7991cd6b2f48d8a83.tar.gz
cpython-43b21687a5f8d4fd9b4a99f7991cd6b2f48d8a83.tar.bz2
Improve error message in test
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r--Lib/sqlite3/test/hooks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
index 94da785..b889cd2 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))))