11
11
pyreadstat = pytest .importorskip ("pyreadstat" )
12
12
13
13
14
- # TODO(CoW) - detection of chained assignment in cython
15
- # https://github.com/pandas-dev/pandas/issues/51315
16
- @pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
17
- @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
18
14
@pytest .mark .parametrize ("path_klass" , [lambda p : p , Path ])
19
15
def test_spss_labelled_num (path_klass , datapath ):
20
16
# test file from the Haven project (https://haven.tidyverse.org/)
@@ -31,8 +27,6 @@ def test_spss_labelled_num(path_klass, datapath):
31
27
tm .assert_frame_equal (df , expected )
32
28
33
29
34
- @pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
35
- @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
36
30
def test_spss_labelled_num_na (datapath ):
37
31
# test file from the Haven project (https://haven.tidyverse.org/)
38
32
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -48,8 +42,6 @@ def test_spss_labelled_num_na(datapath):
48
42
tm .assert_frame_equal (df , expected )
49
43
50
44
51
- @pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
52
- @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
53
45
def test_spss_labelled_str (datapath ):
54
46
# test file from the Haven project (https://haven.tidyverse.org/)
55
47
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -65,8 +57,6 @@ def test_spss_labelled_str(datapath):
65
57
tm .assert_frame_equal (df , expected )
66
58
67
59
68
- @pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
69
- @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
70
60
def test_spss_kwargs (datapath ):
71
61
# test file from the Haven project (https://haven.tidyverse.org/)
72
62
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -81,8 +71,6 @@ def test_spss_kwargs(datapath):
81
71
tm .assert_frame_equal (df , expected )
82
72
83
73
84
- @pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
85
- @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
86
74
def test_spss_umlauts (datapath ):
87
75
# test file from the Haven project (https://haven.tidyverse.org/)
88
76
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -140,8 +128,6 @@ def test_invalid_dtype_backend():
140
128
pd .read_spss ("test" , dtype_backend = "numpy" )
141
129
142
130
143
- @pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
144
- @pytest .mark .filterwarnings ("ignore:ChainedAssignmentError:FutureWarning" )
145
131
def test_spss_metadata (datapath ):
146
132
# GH 54264
147
133
fname = datapath ("io" , "data" , "spss" , "labelled-num.sav" )
0 commit comments