From 64a31c5c2fadfd9125a54b6d849183168883ec63 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Fri, 14 May 2021 18:50:03 +0200 Subject: [3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128) (cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7) Co-authored-by: Erlend Egeberg Aasland --- Lib/sqlite3/test/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index 214205c..7f2ba58 100644 --- a/Lib/sqlite3/test/hooks.py +++ b/Lib/sqlite3/test/hooks.py @@ -242,7 +242,7 @@ class TraceCallbackTests(unittest.TestCase): # Can't execute bound parameters as their values don't appear # in traced statements before SQLite 3.6.21 # (cf. http://www.sqlite.org/draft/releaselog/3_6_21.html) - 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" -- cgit v0.12