From: Erlend Egeberg Aasland Date: Fri, 14 May 2021 10:27:21 +0000 (+0200) Subject: sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) X-Git-Tag: v3.11.0a1~1119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be7e467bcf5e419302d887904ef3e8fd310c68e7;p=thirdparty%2FPython%2Fcpython.git sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) --- diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index a219e8911f70..8c60bdcf5d70 100644 --- a/Lib/sqlite3/test/hooks.py +++ b/Lib/sqlite3/test/hooks.py @@ -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"