From: Erlend Egeberg Aasland Date: Fri, 14 May 2021 16:50:03 +0000 (+0200) Subject: [3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128) X-Git-Tag: v3.9.6~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64a31c5c2fadfd9125a54b6d849183168883ec63;p=thirdparty%2FPython%2Fcpython.git [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 --- diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index 214205c1167a..7f2ba5803560 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"