Skip to content

Commit

Permalink
Skip interchange tests on pinned pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Aug 22, 2023
1 parent 4952f72 commit e298131
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_axisgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,10 @@ def test_tick_params(self):
assert mpl.colors.same_color(tick.tick2line.get_color(), color)
assert tick.get_pad() == pad

@pytest.mark.skipif(
condition=not hasattr(pd.api, "interchange"),
reason="Tests behavior assuming support for dataframe interchange"
)
def test_data_interchange(self, mock_long_df, long_df):

g = ag.FacetGrid(mock_long_df, col="a", row="b")
Expand Down Expand Up @@ -1471,6 +1475,10 @@ def test_tick_params(self):
assert mpl.colors.same_color(tick.tick2line.get_color(), color)
assert tick.get_pad() == pad

@pytest.mark.skipif(
condition=not hasattr(pd.api, "interchange"),
reason="Tests behavior assuming support for dataframe interchange"
)
def test_data_interchange(self, mock_long_df, long_df):

g = ag.PairGrid(mock_long_df, vars=["x", "y", "z"], hue="a")
Expand Down

0 comments on commit e298131

Please sign in to comment.