diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-03 22:50:01 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-03 22:50:01 (GMT) |
commit | 43b21687a5f8d4fd9b4a99f7991cd6b2f48d8a83 (patch) | |
tree | 9bb215800ac5ed03625ecaef484de06574a8113b /Lib/sqlite3 | |
parent | 5bfa0622ec43c8e46ecde63cf9ed627952a0c398 (diff) | |
download | cpython-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.py | 3 |
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)))) |