Skip to content

Commit 6aad986

Browse files
test: revert duck_conn to return a plain connection
Closing the connection does not unload extension DLLs, so the yield/close change did not help the Windows DuckLake failure. Signed-off-by: Nick Muoh <nickspirit3+github@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 142d27b commit 6aad986

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎tests/conftest.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,8 @@ def reset_console():
272272

273273

274274
@pytest.fixture
275-
def duck_conn() -> t.Generator[duckdb.DuckDBPyConnection, None, None]:
276-
conn = duckdb.connect()
277-
yield conn
278-
conn.close()
275+
def duck_conn() -> duckdb.DuckDBPyConnection:
276+
return duckdb.connect()
279277

280278

281279
def push_plan(context: Context, plan: Plan) -> None:

0 commit comments

Comments
 (0)