]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Fri, 14 May 2021 16:50:03 +0000 (18:50 +0200)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 16:50:03 +0000 (01:50 +0900)
(cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Lib/sqlite3/test/hooks.py

index 214205c1167a411acc058c5b246168148bcd2fc4..7f2ba5803560e464e220ab3a3c5f0b9ad964901e 100644 (file)
@@ -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"