From: Debian Science Team Date: Tue, 28 Jan 2025 22:18:06 +0000 (+0000) Subject: Ignore DeprecationWarnings from Python 3.12 X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=01e3a844627fc5e84916238ddde8348c61832a6d;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 e8fad6b8..0e42f946 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 af16def8..869bb06a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -521,6 +521,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 = [