2
2
Tests for CategoricalIndex.__repr__ and related methods.
3
3
"""
4
4
5
- import pytest
6
-
7
- from pandas ._config import using_string_dtype
8
5
import pandas ._config .config as cf
9
6
10
7
from pandas import CategoricalIndex
@@ -22,7 +19,6 @@ def test_string_categorical_index_repr(self, using_infer_string):
22
19
)
23
20
assert repr (idx ) == expected
24
21
25
- @pytest .mark .xfail (using_string_dtype (), reason = "Different padding on multi-line" )
26
22
def test_categorical_index_repr_multiline (self , using_infer_string ):
27
23
# multiple lines
28
24
idx = CategoricalIndex (["a" , "bb" , "ccc" ] * 10 )
@@ -37,7 +33,6 @@ def test_categorical_index_repr_multiline(self, using_infer_string):
37
33
)
38
34
assert repr (idx ) == expected
39
35
40
- @pytest .mark .xfail (using_string_dtype (), reason = "Different padding on multi-line" )
41
36
def test_categorical_index_repr_truncated (self , using_infer_string ):
42
37
# truncated
43
38
idx = CategoricalIndex (["a" , "bb" , "ccc" ] * 100 )
@@ -76,7 +71,6 @@ def test_categorical_index_repr_unicode(self, using_infer_string):
76
71
)
77
72
assert repr (idx ) == expected
78
73
79
- @pytest .mark .xfail (using_string_dtype (), reason = "Different padding on multi-line" )
80
74
def test_categorical_index_repr_unicode_multiline (self , using_infer_string ):
81
75
# multiple lines
82
76
idx = CategoricalIndex (["あ" , "いい" , "ううう" ] * 10 )
@@ -91,7 +85,6 @@ def test_categorical_index_repr_unicode_multiline(self, using_infer_string):
91
85
)
92
86
assert repr (idx ) == expected
93
87
94
- @pytest .mark .xfail (using_string_dtype (), reason = "Different padding on multi-line" )
95
88
def test_categorical_index_repr_unicode_truncated (self , using_infer_string ):
96
89
# truncated
97
90
idx = CategoricalIndex (["あ" , "いい" , "ううう" ] * 100 )
@@ -131,7 +124,6 @@ def test_categorical_index_repr_east_asian_width(self, using_infer_string):
131
124
)
132
125
assert repr (idx ) == expected
133
126
134
- @pytest .mark .xfail (using_string_dtype (), reason = "Different padding on multi-line" )
135
127
def test_categorical_index_repr_east_asian_width_multiline (
136
128
self , using_infer_string
137
129
):
@@ -151,7 +143,6 @@ def test_categorical_index_repr_east_asian_width_multiline(
151
143
)
152
144
assert repr (idx ) == expected
153
145
154
- @pytest .mark .xfail (using_string_dtype (), reason = "Different padding on multi-line" )
155
146
def test_categorical_index_repr_east_asian_width_truncated (
156
147
self , using_infer_string
157
148
):
0 commit comments