mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-07 17:14:09 +02:00
Skip legacy_alter_table restore test on SQLite < 3.25
The pragma does not exist there, so querying it returns no rows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
4b66d515a3
commit
b8ed80bf5d
1 changed files with 2 additions and 0 deletions
|
|
@ -1052,6 +1052,8 @@ def test_transform_with_view_in_open_transaction(fresh_db):
|
|||
|
||||
|
||||
def test_transform_restores_legacy_alter_table_setting(fresh_db):
|
||||
if sqlite3.sqlite_version_info < (3, 25, 0):
|
||||
pytest.skip("legacy_alter_table pragma requires SQLite 3.25 or higher")
|
||||
dogs = fresh_db["dogs"]
|
||||
dogs.insert({"id": 1, "name": "Cleo"}, pk="id")
|
||||
# Default is OFF, reset to OFF afterwards
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue