From: Debian Science Team Date: Sun, 7 Jul 2024 18:36:37 +0000 (+0100) Subject: Ignore DeprecationWarnings from Python 3.12 X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1~1^2^2^2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fee9bc5c45cd271619c1f24a7140ee43e650b258;p=pandas.git Ignore DeprecationWarnings from Python 3.12 Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name ignore_python3p12_deprecations.patch --- diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 17630f14..ba843ad8 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -569,11 +569,11 @@ class TestEval: assert pd.eval("-1", parser=parser, engine=engine) == -1 assert pd.eval("+1", parser=parser, engine=engine) == +1 with tm.assert_produces_warning( - warn, match="Bitwise inversion", check_stacklevel=False + warn, match="Bitwise inversion", check_stacklevel=False, raise_on_extra_warnings=False ): assert pd.eval("~True", parser=parser, engine=engine) == ~True with tm.assert_produces_warning( - warn, match="Bitwise inversion", check_stacklevel=False + warn, match="Bitwise inversion", check_stacklevel=False, raise_on_extra_warnings=False ): assert pd.eval("~False", parser=parser, engine=engine) == ~False assert pd.eval("-True", parser=parser, engine=engine) == -True diff --git a/pyproject.toml b/pyproject.toml index c5569b1b..91f984d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -515,6 +515,8 @@ filterwarnings = [ "ignore:distutils Version classes are deprecated:DeprecationWarning:fsspec", # Can be removed once https://github.com/numpy/numpy/pull/24794 is merged "ignore:.*In the future `np.long` will be defined as.*:FutureWarning", + "ignore:Pickle, copy, and deepcopy support will be removed from itertools.*:DeprecationWarning", + "ignore:Bitwise inversion.*on bool.*:DeprecationWarning", ] junit_family = "xunit2" markers = [