33import numpy as np
44import pytest
55
6- import pandas .util ._test_decorators as td
7-
86import pandas as pd
97import pandas ._testing as tm
108
119pyreadstat = pytest .importorskip ("pyreadstat" )
1210
1311
14- @td .skip_copy_on_write_not_yet_implemented
12+ # TODO(CoW) - detection of chained assignment in cython
13+ # https://github.com/pandas-dev/pandas/issues/51315
14+ @pytest .mark .filterwarnings ("ignore::pandas.errors.ChainedAssignmentError" )
1515@pytest .mark .parametrize ("path_klass" , [lambda p : p , Path ])
1616def test_spss_labelled_num (path_klass , datapath ):
1717 # test file from the Haven project (https://haven.tidyverse.org/)
@@ -27,7 +27,7 @@ def test_spss_labelled_num(path_klass, datapath):
2727 tm .assert_frame_equal (df , expected )
2828
2929
30- @td . skip_copy_on_write_not_yet_implemented
30+ @pytest . mark . filterwarnings ( "ignore::pandas.errors.ChainedAssignmentError" )
3131def test_spss_labelled_num_na (datapath ):
3232 # test file from the Haven project (https://haven.tidyverse.org/)
3333 fname = datapath ("io" , "data" , "spss" , "labelled-num-na.sav" )
@@ -42,7 +42,7 @@ def test_spss_labelled_num_na(datapath):
4242 tm .assert_frame_equal (df , expected )
4343
4444
45- @td . skip_copy_on_write_not_yet_implemented
45+ @pytest . mark . filterwarnings ( "ignore::pandas.errors.ChainedAssignmentError" )
4646def test_spss_labelled_str (datapath ):
4747 # test file from the Haven project (https://haven.tidyverse.org/)
4848 fname = datapath ("io" , "data" , "spss" , "labelled-str.sav" )
@@ -57,7 +57,7 @@ def test_spss_labelled_str(datapath):
5757 tm .assert_frame_equal (df , expected )
5858
5959
60- @td . skip_copy_on_write_not_yet_implemented
60+ @pytest . mark . filterwarnings ( "ignore::pandas.errors.ChainedAssignmentError" )
6161def test_spss_umlauts (datapath ):
6262 # test file from the Haven project (https://haven.tidyverse.org/)
6363 fname = datapath ("io" , "data" , "spss" , "umlauts.sav" )
0 commit comments