From d51de93018107b0a823f239a1a45399fcbe498b6 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sun, 2 Feb 2025 11:17:13 +0000 Subject: [PATCH] Ignore DeprecationWarnings from Python 3.12 Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name ignore_python3p12_deprecations.patch --- pandas/tests/computation/test_eval.py | 4 ++-- pyproject.toml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 = [ -- 2.30.2