File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2229,12 +2229,14 @@ def test_api_chunksize_read(conn, request):
22292229@pytest .mark .parametrize ("conn" , all_connectable )
22302230def test_api_categorical (conn , request ):
22312231 if conn == "postgresql_adbc_conn" :
2232- request .node .add_marker (
2233- pytest .mark .xfail (
2234- reason = "categorical dtype not implemented for ADBC postgres driver" ,
2235- strict = True ,
2232+ adbc = import_optional_dependency ("adbc_driver_postgresql" , errors = "ignore" )
2233+ if adbc is not None and Version (adbc .__version__ ) < Version ("0.9.0" ):
2234+ request .node .add_marker (
2235+ pytest .mark .xfail (
2236+ reason = "categorical dtype not implemented for ADBC postgres driver" ,
2237+ strict = True ,
2238+ )
22362239 )
2237- )
22382240 # GH8624
22392241 # test that categorical gets written correctly as dense column
22402242 conn = request .getfixturevalue (conn )
You can’t perform that action at this time.
0 commit comments