Skip to content

Commit

Permalink
test(python/adbc_driver_manager): relax exception message check
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Sep 2, 2024
1 parent cda3468 commit 03f17ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions ci/conda_env_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ importlib-resources
# nodejs is required by pyright
nodejs >=13.0.0
pandas
pyarrow=15.0.2
pyarrow
pyright
pytest
setuptools

# For integration testing
# 0.20.3 is broken on conda-forge
polars<=0.20.2
polars
protobuf
python-duckdb
4 changes: 2 additions & 2 deletions python/adbc_driver_manager/tests/test_lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def test_pycapsule(sqlite):
handle = conn.get_table_schema(catalog=None, db_schema=None, table_name="foo")
assert data.schema == pyarrow.schema(handle)
# ensure consumed schema was marked as such
with pytest.raises(ValueError, match="Cannot import released ArrowSchema"):
with pytest.raises(ValueError):
pyarrow.schema(handle)

# smoke test for the capsule calling release
Expand All @@ -454,7 +454,7 @@ def test_pycapsule(sqlite):
assert result == table

# ensure consumed schema was marked as such
with pytest.raises(ValueError, match="Cannot import released ArrowArrayStream"):
with pytest.raises(ValueError):
pyarrow.table(handle)

# smoke test for the capsule calling release
Expand Down

0 comments on commit 03f17ff

Please sign in to comment.