Skip to content

Commit 4381390

Browse files
committed
Skip this test on DBs that don't support strict, refs #644
1 parent 4dc2e2e commit 4381390

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_create.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,8 @@ def test_create_table_strict(fresh_db, strict):
13531353
table = fresh_db.create_table("t", {"id": int, "f": float}, strict=strict)
13541354
assert table.strict == strict or not fresh_db.supports_strict
13551355
expected_schema = "CREATE TABLE [t] (\n" " [id] INTEGER,\n" " [f] FLOAT\n" ")"
1356+
if strict and not fresh_db.supports_strict:
1357+
return
13561358
if strict:
13571359
expected_schema = "CREATE TABLE [t] (\n [id] INTEGER,\n [f] REAL\n) STRICT"
13581360
assert table.schema == expected_schema

0 commit comments

Comments
 (0)