Skip to content

Commit 9646c02

Browse files
remove warning filter for spss
1 parent 29e1a95 commit 9646c02

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pandas/tests/io/test_spss.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
pyreadstat = pytest.importorskip("pyreadstat")
1212

1313

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")
1814
@pytest.mark.parametrize("path_klass", [lambda p: p, Path])
1915
def test_spss_labelled_num(path_klass, datapath):
2016
# test file from the Haven project (https://haven.tidyverse.org/)
@@ -31,8 +27,6 @@ def test_spss_labelled_num(path_klass, datapath):
3127
tm.assert_frame_equal(df, expected)
3228

3329

34-
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
35-
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
3630
def test_spss_labelled_num_na(datapath):
3731
# test file from the Haven project (https://haven.tidyverse.org/)
3832
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -48,8 +42,6 @@ def test_spss_labelled_num_na(datapath):
4842
tm.assert_frame_equal(df, expected)
4943

5044

51-
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
52-
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
5345
def test_spss_labelled_str(datapath):
5446
# test file from the Haven project (https://haven.tidyverse.org/)
5547
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -65,8 +57,6 @@ def test_spss_labelled_str(datapath):
6557
tm.assert_frame_equal(df, expected)
6658

6759

68-
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
69-
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
7060
def test_spss_kwargs(datapath):
7161
# test file from the Haven project (https://haven.tidyverse.org/)
7262
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -81,8 +71,6 @@ def test_spss_kwargs(datapath):
8171
tm.assert_frame_equal(df, expected)
8272

8373

84-
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
85-
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
8674
def test_spss_umlauts(datapath):
8775
# test file from the Haven project (https://haven.tidyverse.org/)
8876
# Licence at LICENSES/HAVEN_LICENSE, LICENSES/HAVEN_MIT
@@ -140,8 +128,6 @@ def test_invalid_dtype_backend():
140128
pd.read_spss("test", dtype_backend="numpy")
141129

142130

143-
@pytest.mark.filterwarnings("ignore::pandas.errors.ChainedAssignmentError")
144-
@pytest.mark.filterwarnings("ignore:ChainedAssignmentError:FutureWarning")
145131
def test_spss_metadata(datapath):
146132
# GH 54264
147133
fname = datapath("io", "data", "spss", "labelled-num.sav")

0 commit comments

Comments
 (0)