From dbae472a3b7518e024ec61ca2a011c283f879a34 Mon Sep 17 00:00:00 2001 From: Hendrik Makait Date: Wed, 13 Nov 2024 14:43:27 +0100 Subject: [PATCH] Avoid connectionless execution --- dask_snowflake/tests/test_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dask_snowflake/tests/test_core.py b/dask_snowflake/tests/test_core.py index 70a054c..51a5c5e 100644 --- a/dask_snowflake/tests/test_core.py +++ b/dask_snowflake/tests/test_core.py @@ -29,7 +29,8 @@ def table(connection_kwargs): yield name engine = create_engine(URL(**connection_kwargs)) - engine.execute(f"DROP TABLE IF EXISTS {name}") + with engine.connect() as connection: + connection.execute(f"DROP TABLE IF EXISTS {name}") @pytest.fixture(scope="module")