Skip to content

Commit d93bbaa

Browse files
committed
use con
1 parent aa1d4ba commit d93bbaa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/integration/test_writes/test_writes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,12 @@ def test_duckdb_url_import(warehouse: Path, arrow_table_with_null: pa.Table) ->
649649

650650
import duckdb
651651

652+
con = duckdb.connect(database=":memory:")
652653
query = "SELECT * FROM duckdb_extensions() WHERE extension_name = 'iceberg'"
653-
print(f"Before: {duckdb.sql(query)}")
654-
duckdb.sql("INSTALL iceberg; LOAD iceberg;")
655-
print(f"After: {duckdb.sql(query)}")
656-
result = duckdb.sql(
654+
print(f"Before: \n{con.sql(query)}")
655+
con.sql("INSTALL iceberg; LOAD iceberg;")
656+
print(f"After: \n{con.sql(query)}")
657+
result = con.sql(
657658
f"""
658659
SELECT *
659660
FROM iceberg_scan('{location}')

0 commit comments

Comments
 (0)