Skip to content

Commit d4832ac

Browse files
suppress warnings in spss tests
1 parent 1006fdd commit d4832ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/io/test_spss.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# TODO(CoW) - detection of chained assignment in cython
1515
# https://github.com/pandas-dev/pandas/issues/51315
1616
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
17+
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
1718
@pytest.mark.parametrize("path_klass", [lambda p: p, Path])
1819
def test_spss_labelled_num(path_klass, datapath):
1920
# test file from the Haven project (https://haven.tidyverse.org/)
@@ -31,6 +32,7 @@ def test_spss_labelled_num(path_klass, datapath):
3132

3233

3334
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
35+
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
3436
def test_spss_labelled_num_na(datapath):
3537
# test file from the Haven project (https://haven.tidyverse.org/)
3638
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -47,6 +49,7 @@ def test_spss_labelled_num_na(datapath):
4749

4850

4951
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
52+
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
5053
def test_spss_labelled_str(datapath):
5154
# test file from the Haven project (https://haven.tidyverse.org/)
5255
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -63,6 +66,7 @@ def test_spss_labelled_str(datapath):
6366

6467

6568
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
69+
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
6670
def test_spss_umlauts(datapath):
6771
# test file from the Haven project (https://haven.tidyverse.org/)
6872
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -121,6 +125,7 @@ def test_invalid_dtype_backend():
121125

122126

123127
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
128+
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
124129
def test_spss_metadata(datapath):
125130
# GH 54264
126131
fname = datapath("io", "data", "spss", "labelled-num.sav")

0 commit comments

Comments
 (0)