Skip to content

Commit f1441b2

Browse files
authored
CHORE: Enable mistakenly ignored tests (#60827)
Enable ignored tests
1 parent d72f165 commit f1441b2

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

pandas/tests/io/formats/test_to_string.py

+11-14
Original file line numberDiff line numberDiff line change
@@ -132,20 +132,17 @@ def test_to_string_with_formatters_unicode(self):
132132
)
133133
assert result == expected
134134

135-
def test_to_string_index_formatter(self):
136-
df = DataFrame([range(5), range(5, 10), range(10, 15)])
137-
138-
rs = df.to_string(formatters={"__index__": lambda x: "abc"[x]})
139-
140-
xp = dedent(
141-
"""\
142-
0 1 2 3 4
143-
a 0 1 2 3 4
144-
b 5 6 7 8 9
145-
c 10 11 12 13 14\
146-
"""
147-
)
148-
assert rs == xp
135+
def test_to_string_index_formatter(self):
136+
df = DataFrame([range(5), range(5, 10), range(10, 15)])
137+
rs = df.to_string(formatters={"__index__": lambda x: "abc"[x]})
138+
xp = dedent(
139+
"""\
140+
0 1 2 3 4
141+
a 0 1 2 3 4
142+
b 5 6 7 8 9
143+
c 10 11 12 13 14"""
144+
)
145+
assert rs == xp
149146

150147
def test_no_extra_space(self):
151148
# GH#52690: Check that no extra space is given

0 commit comments

Comments
 (0)