summaryrefslogtreecommitdiffstats
path: root/debian/patches/pandas2p1_ignore_warnings.patch
blob: c381cb8c1409580733f6c65bb8efbe0cc596594b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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: