summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-14 11:07:24 (GMT)
committerGitHub <noreply@github.com>2021-05-14 11:07:24 (GMT)
commitf28bac428d5fff23fe5e95aa02b903ee2dd5b3de (patch)
tree603c64c5f15a8cda15dc677773245ebf89ac89e2 /Lib/sqlite3
parent464269778b10d928be453237593696d192b1b947 (diff)
downloadcpython-f28bac428d5fff23fe5e95aa02b903ee2dd5b3de.zip
cpython-f28bac428d5fff23fe5e95aa02b903ee2dd5b3de.tar.gz
cpython-f28bac428d5fff23fe5e95aa02b903ee2dd5b3de.tar.bz2
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@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r--Lib/sqlite3/test/hooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
index a219e89..8c60bdc 100644
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -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"