Skip to content

Commit 658d41c

Browse files
committed
skip PRAGMA-dependent completion tests on older SQLite versions (3.16.0 for columns, 3.30.0 for functions)
1 parent 10f09e0 commit 658d41c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_sqlite3/test_cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ def test_complete_table_indexes_triggers_views(self):
308308
],
309309
)
310310

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

335+
@unittest.skipIf(sqlite3.sqlite_version_info < (3, 30, 0),
336+
"PRAGMA function_list is not available until "
337+
"SQLite 3.30.0")
332338
def test_complete_functions(self):
333339
input_ = b"SELECT AV\t1);\n.quit\n"
334340
output = self.write_input(input_)

0 commit comments

Comments
 (0)