Skip to content

Commit 8941629

Browse files
committed
Ignore another runtimewarning
1 parent e42d2b0 commit 8941629

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

pandas/tests/plotting/frame/test_frame.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,14 @@
5252
mpl = pytest.importorskip("matplotlib")
5353
plt = pytest.importorskip("matplotlib.pyplot")
5454

55-
pytestmark = pytest.mark.filterwarnings(
56-
"ignore:divide by zero encountered in scalar divide:RuntimeWarning"
57-
)
55+
pytestmark = [
56+
pytest.mark.filterwarnings(
57+
"ignore:divide by zero encountered in scalar divide:RuntimeWarning"
58+
),
59+
pytest.mark.filterwarnings(
60+
"ignore:invalid value encountered in scalar multiply:RuntimeWarning"
61+
),
62+
]
5863

5964

6065
class TestDataFramePlots:

pandas/tests/plotting/test_series.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@
4040
from pandas.plotting._matplotlib.converter import DatetimeConverter
4141
from pandas.plotting._matplotlib.style import get_standard_colors
4242

43-
pytestmark = pytest.mark.filterwarnings(
44-
"ignore:divide by zero encountered in scalar divide:RuntimeWarning"
45-
)
43+
pytestmark = [
44+
pytest.mark.filterwarnings(
45+
"ignore:divide by zero encountered in scalar divide:RuntimeWarning"
46+
),
47+
pytest.mark.filterwarnings(
48+
"ignore:invalid value encountered in scalar multiply:RuntimeWarning"
49+
),
50+
]
4651

4752

4853
@pytest.fixture

0 commit comments

Comments
 (0)