Skip to content

Commit 10cd782

Browse files
committed
more test faillures
1 parent 369581e commit 10cd782

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pandas/tests/plotting/frame/test_frame.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,7 @@ def test_boxplot_series_positions(self, hist_df):
10701070
tm.assert_numpy_array_equal(ax.xaxis.get_ticklocs(), positions)
10711071
assert len(ax.lines) == 7 * len(numeric_cols)
10721072

1073+
@pytest.mark.filterwarnings("ignore:set_ticklabels:UserWarning")
10731074
def test_boxplot_vertical(self, hist_df):
10741075
df = hist_df
10751076
numeric_cols = df._get_numeric_data().columns
@@ -1086,8 +1087,8 @@ def test_boxplot_vertical(self, hist_df):
10861087
_check_text_labels(ax.get_yticklabels(), labels)
10871088
assert len(ax.lines) == 7 * len(numeric_cols)
10881089

1089-
@pytest.mark.filterwarnings("ignore:Attempt:UserWarning")
1090-
@pytest.mark.filterwarnings("ignore:set_ticklabels:UserWarning")
1090+
@pytest.mark.filterwarnings("ignore::UserWarning")
1091+
@pytest.mark.xfail(Version(mpl.__version__) > Version("3.10"), reason="TODO")
10911092
def test_boxplot_vertical_subplots(self, hist_df):
10921093
df = hist_df
10931094
numeric_cols = df._get_numeric_data().columns
@@ -1106,6 +1107,7 @@ def test_boxplot_vertical_subplots(self, hist_df):
11061107
_check_text_labels(ax.get_yticklabels(), [label])
11071108
assert len(ax.lines) == 7
11081109

1110+
@pytest.mark.filterwarnings("ignore:set_ticklabels:UserWarning")
11091111
def test_boxplot_vertical_positions(self, hist_df):
11101112
df = hist_df
11111113
numeric_cols = df._get_numeric_data().columns

pandas/tests/plotting/test_boxplot_method.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def test_specified_props_kwd(self, props, expected):
326326

327327
assert result[expected][0].get_color() == "C1"
328328

329+
@pytest.mark.filterwarnings("ignore:set_ticklabels:UserWarning")
329330
def test_plot_xlabel_ylabel(self, vert):
330331
df = DataFrame(
331332
{
@@ -367,6 +368,7 @@ def test_boxplot_xlabel_ylabel(self, vert):
367368
assert ax.get_xlabel() == xlabel
368369
assert ax.get_ylabel() == ylabel
369370

371+
@pytest.mark.filterwarnings("ignore:set_ticklabels:UserWarning")
370372
def test_boxplot_group_xlabel_ylabel(self, vert):
371373
df = DataFrame(
372374
{
@@ -381,6 +383,7 @@ def test_boxplot_group_xlabel_ylabel(self, vert):
381383
assert subplot.get_xlabel() == xlabel
382384
assert subplot.get_ylabel() == ylabel
383385

386+
@pytest.mark.filterwarnings("ignore:set_ticklabels:UserWarning")
384387
def test_boxplot_group_no_xlabel_ylabel(self, vert):
385388
df = DataFrame(
386389
{

0 commit comments

Comments
 (0)