summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-05-14 10:27:21 (GMT)
committerGitHub <noreply@github.com>2021-05-14 10:27:21 (GMT)
commitbe7e467bcf5e419302d887904ef3e8fd310c68e7 (patch)
tree1ee315fcfeb727425b432eda1aeebe8c03d5ae4e
parentfe175a87adb8bd4c65f58b156dc3e4792b525a8c (diff)
downloadcpython-be7e467bcf5e419302d887904ef3e8fd310c68e7.zip
cpython-be7e467bcf5e419302d887904ef3e8fd310c68e7.tar.gz
cpython-be7e467bcf5e419302d887904ef3e8fd310c68e7.tar.bz2
sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032)
-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"