Skip to content

Commit 2d61ec3

Browse files
authored
CI: Xfail plotting tests (#51289)
1 parent a5136c6 commit 2d61ec3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

pandas/tests/plotting/frame/test_frame_subplots.py

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import numpy as np
77
import pytest
88

9+
from pandas.compat import is_platform_linux
10+
from pandas.compat.numpy import np_version_gte1p24
911
import pandas.util._test_decorators as td
1012

1113
import pandas as pd
@@ -370,6 +372,11 @@ def test_subplots_dup_columns(self):
370372
assert len(ax.lines) == 0
371373
assert len(ax.right_ax.lines) == 5
372374

375+
@pytest.mark.xfail(
376+
np_version_gte1p24 and is_platform_linux(),
377+
reason="Weird rounding problems",
378+
strict=False,
379+
)
373380
def test_bar_log_no_subplots(self):
374381
# GH3254, GH3298 matplotlib/matplotlib#1882, #1892
375382
# regressions in 1.2.1
@@ -380,6 +387,11 @@ def test_bar_log_no_subplots(self):
380387
ax = df.plot.bar(grid=True, log=True)
381388
tm.assert_numpy_array_equal(ax.yaxis.get_ticklocs(), expected)
382389

390+
@pytest.mark.xfail(
391+
np_version_gte1p24 and is_platform_linux(),
392+
reason="Weird rounding problems",
393+
strict=False,
394+
)
383395
def test_bar_log_subplots(self):
384396
expected = np.array([0.1, 1.0, 10.0, 100.0, 1000.0, 1e4])
385397

pandas/tests/plotting/test_series.py

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import numpy as np
66
import pytest
77

8+
from pandas.compat import is_platform_linux
9+
from pandas.compat.numpy import np_version_gte1p24
810
import pandas.util._test_decorators as td
911

1012
import pandas as pd
@@ -238,6 +240,11 @@ def test_line_use_index_false(self):
238240
label2 = ax2.get_xlabel()
239241
assert label2 == ""
240242

243+
@pytest.mark.xfail(
244+
np_version_gte1p24 and is_platform_linux(),
245+
reason="Weird rounding problems",
246+
strict=False,
247+
)
241248
def test_bar_log(self):
242249
expected = np.array([1e-1, 1e0, 1e1, 1e2, 1e3, 1e4])
243250

0 commit comments

Comments
 (0)