Skip to content

Commit

Permalink
pandas 1.5 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup committed Mar 13, 2024
1 parent 419aee5 commit d97411b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions anndata/tests/test_io_elementwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import pandas as pd
import pytest
import zarr
from packaging.version import Version
from scipy import sparse

import anndata as ad
Expand Down Expand Up @@ -337,6 +338,8 @@ def test_dataframe_column_uniqueness(store):

@pytest.mark.parametrize("copy_on_write", [True, False])
def test_io_pd_cow(store, copy_on_write):
if Version(pd.__version__) < Version("2"):
pytest.xfail("copy_on_write option is not available in pandas < 2")
# https://github.com/zarr-developers/numcodecs/issues/514
with pd.option_context("mode.copy_on_write", copy_on_write):
orig = gen_adata((3, 2))
Expand Down

0 comments on commit d97411b

Please sign in to comment.