Skip to content

Commit

Permalink
Avoid connectionless execution
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Nov 13, 2024
1 parent c8f121f commit dbae472
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dask_snowflake/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dbae472

Please sign in to comment.