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

corona10 webhook-mailer at python.org
Fri May 14 07:07:28 EDT 2021


https://github.com/python/cpython/commit/f28bac428d5fff23fe5e95aa02b903ee2dd5b3de
commit: f28bac428d5fff23fe5e95aa02b903ee2dd5b3de
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: corona10 <donghee.na92 at gmail.com>
date: 2021年05月14日T20:07:24+09:00
summary:
bpo-44108: sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) (GH-26125)
(cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at innova.no>
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

AltStyle によって変換されたページ (->オリジナル) /