[Python-checkins] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032)

corona10 webhook-mailer at python.org
Fri May 14 06:27:51 EDT 2021


https://github.com/python/cpython/commit/be7e467bcf5e419302d887904ef3e8fd310c68e7
commit: be7e467bcf5e419302d887904ef3e8fd310c68e7
branch: main
author: Erlend Egeberg Aasland <erlend.aasland at innova.no>
committer: corona10 <donghee.na92 at gmail.com>
date: 2021-05-14T19:27:21+09:00
summary:

sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032)

files:
M Lib/sqlite3/test/hooks.py

diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
index a219e8911f7063..8c60bdcf5d70aa 100644
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -237,7 +237,7 @@ def trace(statement):
             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"



More information about the Python-checkins mailing list