mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Improve error message in test
This commit is contained in:
parent
5bfa0622ec
commit
43b21687a5
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ class TraceCallbackTests(unittest.TestCase):
|
||||||
con.execute("insert into foo(x) values (?)", (unicode_value,))
|
con.execute("insert into foo(x) values (?)", (unicode_value,))
|
||||||
con.commit()
|
con.commit()
|
||||||
self.assertTrue(any(unicode_value in stmt for stmt in traced_statements),
|
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))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue