diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index 4cb4eaf95f6f5..2bb348a11655c 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -62,7 +62,7 @@ jobs: ENV_FILE: ci/deps/azure-38-numpydev.yaml CONDA_PY: "38" PATTERN: "not slow and not network" - TEST_ARGS: "-W error" + TEST_ARGS: "-W error -W \"ignore:Promotion of numbers and bools:FutureWarning\"" PANDAS_TESTING_MODE: "deprecate" EXTRA_APT: "xsel" diff --git a/pandas/tests/arithmetic/common.py b/pandas/tests/arithmetic/common.py index e26bb513838a5..d42da39ec8ff0 100644 --- a/pandas/tests/arithmetic/common.py +++ b/pandas/tests/arithmetic/common.py @@ -83,6 +83,7 @@ def xbox2(x): "Invalid comparison between", "Cannot compare type", "not supported between", + "could not be promoted", "invalid type promotion", ( # GH#36706 npdev 1.20.0 2020-09-28 diff --git a/pandas/tests/arithmetic/test_interval.py b/pandas/tests/arithmetic/test_interval.py index 6dc3b3b13dd0c..4473d86fa04a1 100644 --- a/pandas/tests/arithmetic/test_interval.py +++ b/pandas/tests/arithmetic/test_interval.py @@ -235,7 +235,7 @@ def test_compare_list_like_nan(self, op, array, nulls_fixture, request): Categorical(list("abab")), Categorical(date_range("2017-01-01", periods=4)), pd.array(list("abcd")), - pd.array(["foo", 3.14, None, object()]), + pd.array(["foo", 3.14, None, object()], dtype=object), ], ids=lambda x: str(x.dtype), ) diff --git a/pandas/tests/frame/methods/test_to_records.py b/pandas/tests/frame/methods/test_to_records.py index e83882be9c680..0b710d7ebf7d7 100644 --- a/pandas/tests/frame/methods/test_to_records.py +++ b/pandas/tests/frame/methods/test_to_records.py @@ -3,6 +3,8 @@ import numpy as np import pytest +from pandas.compat.numpy import is_numpy_dev + from pandas import ( CategoricalDtype, DataFrame, @@ -162,20 +164,28 @@ def test_to_records_with_categorical(self): ), ), # Pass in a type instance. - ( + pytest.param( {"column_dtypes": str}, np.rec.array( [("0", "1", "0.2", "a"), ("1", "2", "1.5", "bc")], dtype=[("index", " and "