diff options
Diffstat (limited to 'debian/patches/pandas2p1_ignore_warnings.patch')
-rw-r--r-- | debian/patches/pandas2p1_ignore_warnings.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/pandas2p1_ignore_warnings.patch b/debian/patches/pandas2p1_ignore_warnings.patch new file mode 100644 index 0000000..c381cb8 --- /dev/null +++ b/debian/patches/pandas2p1_ignore_warnings.patch @@ -0,0 +1,26 @@ +Description: Ignore warnings added in pandas 2.1 + +Author: Rebecca N. Palmer <rebecca_palmer@zoho.com> +Bug-Debian: https://bugs.debian.org/1053946 +Forwarded: no + +--- tqdm-4.64.1.orig/tests/tests_pandas.py ++++ tqdm-4.64.1/tests/tests_pandas.py +@@ -66,6 +66,8 @@ def test_pandas_series(): + exres + " at least twice.", our_file.read())) + + ++import pytest ++@pytest.mark.filterwarnings('ignore:.*applymap has been deprecated.*:FutureWarning') + def test_pandas_data_frame(): + """Test pandas.DataFrame.progress_apply and .progress_applymap""" + with closing(StringIO()) as our_file: +@@ -107,6 +109,8 @@ def test_pandas_data_frame(): + exres + " at least once.", our_file.read())) + + ++@pytest.mark.filterwarnings('ignore:.*the provided callable will be used directly.*:FutureWarning') ++@pytest.mark.filterwarnings('ignore:.*groupby with axis=1 is deprecated.*:FutureWarning') + def test_pandas_groupby_apply(): + """Test pandas.DataFrame.groupby(...).progress_apply""" + with closing(StringIO()) as our_file: |