Skip to content

Commit fb22e69

Browse files
aneesh98feefladder
authored andcommitted
TST: Solution to doctest error in _parse_latex_header_span (pandas-dev#42700)
1 parent 05f1967 commit fb22e69

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ci/code_checks.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
121121
pandas/io/parsers/ \
122122
pandas/io/sas/ \
123123
pandas/io/sql.py \
124-
pandas/tseries/
124+
pandas/tseries/ \
125+
pandas/io/formats/style_render.py
125126
RET=$(($RET + $?)) ; echo $MSG "DONE"
126127

127128
fi

pandas/io/formats/style_render.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1334,9 +1334,9 @@ def _parse_latex_header_span(
13341334
13351335
Examples
13361336
--------
1337-
>>> cell = {'display_vale':'text', 'attributes': 'colspan="3"'}
1337+
>>> cell = {'display_value':'text', 'attributes': 'colspan="3"'}
13381338
>>> _parse_latex_header_span(cell, 't', 'c')
1339-
'\multicol{3}{c}{text}'
1339+
'\\multicolumn{3}{c}{text}'
13401340
"""
13411341
if "attributes" in cell:
13421342
attrs = cell["attributes"]

0 commit comments

Comments
 (0)