sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032)

This commit is contained in:
Erlend Egeberg Aasland 2021-05-14 12:27:21 +02:00 committed by GitHub
parent fe175a87ad
commit be7e467bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ class TraceCallbackTests(unittest.TestCase):
traced_statements.append(statement)
con.set_trace_callback(trace)
con.execute("create table foo(x)")
con.execute('insert into foo(x) values ("%s")' % unicode_value)
con.execute("insert into foo(x) values ('%s')" % unicode_value)
con.commit()
self.assertTrue(any(unicode_value in stmt for stmt in traced_statements),
"Unicode data %s garbled in trace callback: %s"