From: Debian Science Team Date: Sun, 18 Feb 2024 20:31:18 +0000 (+0000) Subject: Ignore DeprecationWarnings from Python 3.12 X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1~1^2^2^2^2^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a15059da5b1de7f1bb4d00cee341757778c3c237;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 3aa7decf..757ed977 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -554,11 +554,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 1632f9cd..cd5e5d82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -506,6 +506,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 = [