Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
skip PRAGMA-dependent completion tests on older SQLite versions (3.16…
….0 for columns, 3.30.0 for functions)
  • Loading branch information
tanloong committed Oct 12, 2025
commit 658d41ce1187385e472e45f8de1fe1222cbcfc08
6 changes: 6 additions & 0 deletions Lib/test/test_sqlite3/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ def test_complete_table_indexes_triggers_views(self):
],
)

@unittest.skipIf(sqlite3.sqlite_version_info < (3, 16, 0),
"PRAGMA table-valued function is not available until "
"SQLite 3.16.0")
def test_complete_columns(self):
input_ = textwrap.dedent("""\
CREATE TABLE _table (_col_table);
Expand All @@ -329,6 +332,9 @@ def test_complete_columns(self):
candidates, ["_col_attached", "_col_table", "_col_temp"]
)

@unittest.skipIf(sqlite3.sqlite_version_info < (3, 30, 0),
"PRAGMA function_list is not available until "
"SQLite 3.30.0")
def test_complete_functions(self):
input_ = b"SELECT AV\t1);\n.quit\n"
output = self.write_input(input_)
Expand Down
Loading