Skip to content

Commit

Permalink
test(duckdb): account for other errors when running in the nix sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Feb 2, 2024
1 parent db39886 commit e4df99b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/backends/duckdb/tests/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_read_geo_from_url(con, monkeypatch):
loaded_exts = []
monkeypatch.setattr(con, "_load_extensions", lambda x, **_: loaded_exts.extend(x))

with pytest.raises(duckdb.IOException):
with pytest.raises((duckdb.IOException, duckdb.CatalogException)):
# The read will fail, either because the URL is bogus (which it is) or
# because the current connection doesn't have the spatial extension
# installed and so the call to `st_read` will raise a catalog error.
Expand Down Expand Up @@ -355,7 +355,7 @@ def test_set_temp_dir(tmp_path):
"nix on linux cannot download duckdb extensions or data due to sandboxing; "
"duckdb will try to automatically install and load read_parquet"
),
raises=duckdb.IOException,
raises=(duckdb.Error, duckdb.IOException),
)
def test_s3_403_fallback(con, httpserver, monkeypatch):
# monkeypatch to avoid downloading extensions in tests
Expand Down

0 comments on commit e4df99b

Please sign in to comment.