File tree 1 file changed +7
-5
lines changed
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):
2229
2229
@pytest .mark .parametrize ("conn" , all_connectable )
2230
2230
def test_api_categorical (conn , request ):
2231
2231
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
+ )
2236
2239
)
2237
- )
2238
2240
# GH8624
2239
2241
# test that categorical gets written correctly as dense column
2240
2242
conn = request .getfixturevalue (conn )
You can’t perform that action at this time.
0 commit comments