diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py index f172280202e64..60fe22e54f224 100644 --- a/pandas/tests/arrays/test_integer.py +++ b/pandas/tests/arrays/test_integer.py @@ -894,6 +894,8 @@ def test_astype_nansafe(): @pytest.mark.parametrize("ufunc", [np.abs, np.sign]) +# np.sign emits a warning with nans, +@pytest.mark.filterwarnings("ignore:invalid value encountered in sign") def test_ufuncs_single_int(ufunc): a = integer_array([1, 2, -3, np.nan]) result = ufunc(a) diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py index 8f855fd0c6cff..94e2095d71425 100644 --- a/pandas/tests/plotting/test_datetimelike.py +++ b/pandas/tests/plotting/test_datetimelike.py @@ -43,7 +43,13 @@ def setup_method(self, method): def teardown_method(self, method): tm.close() + # Ignore warning + # ``` + # Converting to PeriodArray/Index representation will drop timezone information. + # ``` + # which occurs for UTC-like timezones. @pytest.mark.slow + @pytest.mark.filterwarnings("ignore:msg:UserWarning") def test_ts_plot_with_tz(self, tz_aware_fixture): # GH2877, GH17173 tz = tz_aware_fixture