Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ignore runtimewarning in plotting tests
  • Loading branch information
mroeschke committed Jul 29, 2025
commit 93d804ae4a2e44722b55de600bb526f9a16b6a06
2 changes: 1 addition & 1 deletion pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ def test_api_chunksize_read(conn, request):

# reading the query in chunks with read_sql_query
if conn_name == "sqlite_buildin":
with pytest.raises(NotImplementedError, match=""):
with pytest.raises(NotImplementedError, match="^$"):
sql.read_sql_table("test_chunksize", conn, chunksize=5)
else:
res3 = DataFrame()
Expand Down
4 changes: 4 additions & 0 deletions pandas/tests/plotting/frame/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
mpl = pytest.importorskip("matplotlib")
plt = pytest.importorskip("matplotlib.pyplot")

pytestmark = pytest.mark.filterwarnings(
"ignore:divide by zero encountered in scalar divide:RuntimeWarning"
)


class TestDataFramePlots:
@pytest.mark.slow
Expand Down
4 changes: 4 additions & 0 deletions pandas/tests/plotting/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
from pandas.plotting._matplotlib.converter import DatetimeConverter
from pandas.plotting._matplotlib.style import get_standard_colors

pytestmark = pytest.mark.filterwarnings(
"ignore:divide by zero encountered in scalar divide:RuntimeWarning"
)


@pytest.fixture
def ts():
Expand Down
Loading