3
3
import numpy as np
4
4
import pytest
5
5
6
- import pandas .util ._test_decorators as td
7
-
8
6
import pandas as pd
9
7
import pandas ._testing as tm
10
8
11
9
pyreadstat = pytest .importorskip ("pyreadstat" )
12
10
13
11
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" )
15
15
@pytest .mark .parametrize ("path_klass" , [lambda p : p , Path ])
16
16
def test_spss_labelled_num (path_klass , datapath ):
17
17
# test file from the Haven project (https://haven.tidyverse.org/)
@@ -27,7 +27,7 @@ def test_spss_labelled_num(path_klass, datapath):
27
27
tm .assert_frame_equal (df , expected )
28
28
29
29
30
- @td . skip_copy_on_write_not_yet_implemented
30
+ @pytest . mark . filterwarnings ( "ignore::pandas.errors.ChainedAssignmentError" )
31
31
def test_spss_labelled_num_na (datapath ):
32
32
# test file from the Haven project (https://haven.tidyverse.org/)
33
33
fname = datapath ("io" , "data" , "spss" , "labelled-num-na.sav" )
@@ -42,7 +42,7 @@ def test_spss_labelled_num_na(datapath):
42
42
tm .assert_frame_equal (df , expected )
43
43
44
44
45
- @td . skip_copy_on_write_not_yet_implemented
45
+ @pytest . mark . filterwarnings ( "ignore::pandas.errors.ChainedAssignmentError" )
46
46
def test_spss_labelled_str (datapath ):
47
47
# test file from the Haven project (https://haven.tidyverse.org/)
48
48
fname = datapath ("io" , "data" , "spss" , "labelled-str.sav" )
@@ -57,7 +57,7 @@ def test_spss_labelled_str(datapath):
57
57
tm .assert_frame_equal (df , expected )
58
58
59
59
60
- @td . skip_copy_on_write_not_yet_implemented
60
+ @pytest . mark . filterwarnings ( "ignore::pandas.errors.ChainedAssignmentError" )
61
61
def test_spss_umlauts (datapath ):
62
62
# test file from the Haven project (https://haven.tidyverse.org/)
63
63
fname = datapath ("io" , "data" , "spss" , "umlauts.sav" )
0 commit comments