11import datetime
2- import sys
32from pathlib import Path
43
54import adbc_driver_manager .dbapi
@@ -29,7 +28,6 @@ def example_table():
2928 )
3029
3130
32- @xfail (sys .platform == "win32" , reason = "adbc-driver-manager.adbc_get_info() returns an empty dict on windows" )
3331def test_connection_get_info (duck_conn ):
3432 assert duck_conn .adbc_get_info () != {}
3533
@@ -42,9 +40,6 @@ def test_connection_get_table_types(duck_conn):
4240 assert duck_conn .adbc_get_table_types () == ["BASE TABLE" ]
4341
4442
45- @xfail (
46- sys .platform == "win32" , reason = "adbc-driver-manager.adbc_get_objects() returns an invalid schema dict on windows"
47- )
4843def test_connection_get_objects (duck_conn ):
4944 with duck_conn .cursor () as cursor :
5045 cursor .execute ("CREATE TABLE getobjects (ints BIGINT PRIMARY KEY)" )
@@ -66,9 +61,6 @@ def test_connection_get_objects(duck_conn):
6661 assert depth_all .schema == depth_catalogs .schema
6762
6863
69- @xfail (
70- sys .platform == "win32" , reason = "adbc-driver-manager.adbc_get_objects() returns an invalid schema dict on windows"
71- )
7264def test_connection_get_objects_filters (duck_conn ):
7365 with duck_conn .cursor () as cursor :
7466 cursor .execute ("CREATE TABLE getobjects (ints BIGINT PRIMARY KEY)" )
@@ -207,7 +199,6 @@ def test_statement_query(duck_conn):
207199 assert cursor .fetch_arrow_table ().to_pylist () == [{"foo" : 1 }]
208200
209201
210- @xfail (sys .platform == "win32" , reason = "adbc-driver-manager returns an invalid table schema on windows" )
211202def test_insertion (duck_conn ):
212203 table = example_table ()
213204 reader = table .to_reader ()
@@ -234,7 +225,6 @@ def test_insertion(duck_conn):
234225 assert cursor .fetch_arrow_table ().to_pydict () == {"count_star()" : [8 ]}
235226
236227
237- @xfail (sys .platform == "win32" , reason = "adbc-driver-manager returns an invalid table schema on windows" )
238228def test_read (duck_conn ):
239229 with duck_conn .cursor () as cursor :
240230 filename = Path (__file__ ).parent / ".." / "data" / "category.csv"
0 commit comments