Skip to content

CI: Xfail plotting tests #51289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pandas/tests/plotting/frame/test_frame_subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import numpy as np
import pytest

from pandas.compat import is_platform_linux
from pandas.compat.numpy import np_version_gte1p24
import pandas.util._test_decorators as td

import pandas as pd
Expand Down Expand Up @@ -370,6 +372,11 @@ def test_subplots_dup_columns(self):
assert len(ax.lines) == 0
assert len(ax.right_ax.lines) == 5

@pytest.mark.xfail(
np_version_gte1p24 and is_platform_linux(),
reason="Weird rounding problems",
strict=False,
)
def test_bar_log_no_subplots(self):
# GH3254, GH3298 matplotlib/matplotlib#1882, #1892
# regressions in 1.2.1
Expand All @@ -380,6 +387,11 @@ def test_bar_log_no_subplots(self):
ax = df.plot.bar(grid=True, log=True)
tm.assert_numpy_array_equal(ax.yaxis.get_ticklocs(), expected)

@pytest.mark.xfail(
np_version_gte1p24 and is_platform_linux(),
reason="Weird rounding problems",
strict=False,
)
def test_bar_log_subplots(self):
expected = np.array([0.1, 1.0, 10.0, 100.0, 1000.0, 1e4])

Expand Down
7 changes: 7 additions & 0 deletions pandas/tests/plotting/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import numpy as np
import pytest

from pandas.compat import is_platform_linux
from pandas.compat.numpy import np_version_gte1p24
import pandas.util._test_decorators as td

import pandas as pd
Expand Down Expand Up @@ -238,6 +240,11 @@ def test_line_use_index_false(self):
label2 = ax2.get_xlabel()
assert label2 == ""

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

Expand Down