14
14
# TODO(CoW) - detection of chained assignment in cython
15
15
# https://github.com/pandas-dev/pandas/issues/51315
16
16
@pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
17
+ @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
17
18
@pytest .mark .parametrize ("path_klass" , [lambda p : p , Path ])
18
19
def test_spss_labelled_num (path_klass , datapath ):
19
20
# test file from the Haven project (https://haven.tidyverse.org/)
@@ -31,6 +32,7 @@ def test_spss_labelled_num(path_klass, datapath):
31
32
32
33
33
34
@pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
35
+ @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
34
36
def test_spss_labelled_num_na (datapath ):
35
37
# test file from the Haven project (https://haven.tidyverse.org/)
36
38
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -47,6 +49,7 @@ def test_spss_labelled_num_na(datapath):
47
49
48
50
49
51
@pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
52
+ @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
50
53
def test_spss_labelled_str (datapath ):
51
54
# test file from the Haven project (https://haven.tidyverse.org/)
52
55
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -63,6 +66,7 @@ def test_spss_labelled_str(datapath):
63
66
64
67
65
68
@pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
69
+ @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
66
70
def test_spss_umlauts (datapath ):
67
71
# test file from the Haven project (https://haven.tidyverse.org/)
68
72
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -121,6 +125,7 @@ def test_invalid_dtype_backend():
121
125
122
126
123
127
@pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
128
+ @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
124
129
def test_spss_metadata (datapath ):
125
130
# GH 54264
126
131
fname = datapath ("io" , "data" , "spss" , "labelled-num.sav" )
0 commit comments