From 03f17ff59cd7e24056d2a892e8430e511108c9bd Mon Sep 17 00:00:00 2001 From: David Li Date: Sun, 1 Sep 2024 20:35:34 -0400 Subject: [PATCH] test(python/adbc_driver_manager): relax exception message check Fixes #2111. --- ci/conda_env_python.txt | 5 ++--- python/adbc_driver_manager/tests/test_lowlevel.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ci/conda_env_python.txt b/ci/conda_env_python.txt index cf2abeeecc..5838abb02e 100644 --- a/ci/conda_env_python.txt +++ b/ci/conda_env_python.txt @@ -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 diff --git a/python/adbc_driver_manager/tests/test_lowlevel.py b/python/adbc_driver_manager/tests/test_lowlevel.py index d2940aef18..e68ea444ab 100644 --- a/python/adbc_driver_manager/tests/test_lowlevel.py +++ b/python/adbc_driver_manager/tests/test_lowlevel.py @@ -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 @@ -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