bpo-40810: Require SQLite 3.7.15 (GH-24106)

This commit is contained in:
Erlend Egeberg Aasland 2021-01-06 01:02:43 +01:00 committed by GitHub
parent c7f8d3caf0
commit cf0b23908c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 56 deletions

View file

@ -260,14 +260,6 @@ class TraceCallbackTests(unittest.TestCase):
cur.execute(queries[0])
con2.execute("create table bar(x)")
cur.execute(queries[1])
# Extract from SQLite 3.7.15 changelog:
# Avoid invoking the sqlite3_trace() callback multiple times when a
# statement is automatically reprepared due to SQLITE_SCHEMA errors.
#
# See bpo-40810
if sqlite.sqlite_version_info < (3, 7, 15):
queries.append(queries[-1])
self.assertEqual(traced_statements, queries)