]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44108: sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) (GH-26125)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 14 May 2021 11:07:24 +0000 (04:07 -0700)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 11:07:24 +0000 (20:07 +0900)
(cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7)

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

index a219e8911f70630efc923c321be3e70453dcd9d3..8c60bdcf5d70aa603d55e3a12cf70f0fa55bc8ef 100644 (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"