11import datetime
2- import sys
32from pathlib import Path
43
54import adbc_driver_manager .dbapi
@@ -29,7 +28,7 @@ def example_table():
2928 )
3029
3130
32- @xfail (sys .platform == "win32" , reason = "adbc-driver-manager.adbc_get_info() returns an empty dict on windows" )
31+ # @xfail(sys.platform == "win32", reason="adbc-driver-manager.adbc_get_info() returns an empty dict on windows")
3332def test_connection_get_info (duck_conn ):
3433 assert duck_conn .adbc_get_info () != {}
3534
@@ -42,9 +41,9 @@ def test_connection_get_table_types(duck_conn):
4241 assert duck_conn .adbc_get_table_types () == ["BASE TABLE" ]
4342
4443
45- @xfail (
46- sys .platform == "win32" , reason = "adbc-driver-manager.adbc_get_objects() returns an invalid schema dict on windows"
47- )
44+ # @xfail(
45+ # sys.platform == "win32", reason="adbc-driver-manager.adbc_get_objects() returns an invalid schema dict on windows"
46+ # )
4847def test_connection_get_objects (duck_conn ):
4948 with duck_conn .cursor () as cursor :
5049 cursor .execute ("CREATE TABLE getobjects (ints BIGINT PRIMARY KEY)" )
@@ -66,9 +65,9 @@ def test_connection_get_objects(duck_conn):
6665 assert depth_all .schema == depth_catalogs .schema
6766
6867
69- @xfail (
70- sys .platform == "win32" , reason = "adbc-driver-manager.adbc_get_objects() returns an invalid schema dict on windows"
71- )
68+ # @xfail(
69+ # sys.platform == "win32", reason="adbc-driver-manager.adbc_get_objects() returns an invalid schema dict on windows"
70+ # )
7271def test_connection_get_objects_filters (duck_conn ):
7372 with duck_conn .cursor () as cursor :
7473 cursor .execute ("CREATE TABLE getobjects (ints BIGINT PRIMARY KEY)" )
@@ -207,7 +206,7 @@ def test_statement_query(duck_conn):
207206 assert cursor .fetch_arrow_table ().to_pylist () == [{"foo" : 1 }]
208207
209208
210- @xfail (sys .platform == "win32" , reason = "adbc-driver-manager returns an invalid table schema on windows" )
209+ # @xfail(sys.platform == "win32", reason="adbc-driver-manager returns an invalid table schema on windows")
211210def test_insertion (duck_conn ):
212211 table = example_table ()
213212 reader = table .to_reader ()
@@ -234,7 +233,7 @@ def test_insertion(duck_conn):
234233 assert cursor .fetch_arrow_table ().to_pydict () == {"count_star()" : [8 ]}
235234
236235
237- @xfail (sys .platform == "win32" , reason = "adbc-driver-manager returns an invalid table schema on windows" )
236+ # @xfail(sys.platform == "win32", reason="adbc-driver-manager returns an invalid table schema on windows")
238237def test_read (duck_conn ):
239238 with duck_conn .cursor () as cursor :
240239 filename = Path (__file__ ).parent / ".." / "data" / "category.csv"
0 commit comments