Mailing List Archive

[3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128)
https://github.com/python/cpython/commit/64a31c5c2fadfd9125a54b6d849183168883ec63
commit: 64a31c5c2fadfd9125a54b6d849183168883ec63
branch: 3.9
author: Erlend Egeberg Aasland <erlend.aasland@innova.no>
committer: corona10 <donghee.na92@gmail.com>
date: 2021-05-15T01:50:03+09:00
summary:

[3.9] sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032). (GH-26128)

(cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>

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

diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
index 214205c1167a41..7f2ba5803560e4 100644
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -242,7 +242,7 @@ def trace(statement):
# Can't execute bound parameters as their values don't appear
# in traced statements before SQLite 3.6.21
# (cf. http://www.sqlite.org/draft/releaselog/3_6_21.html)
- 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"

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins