Skip to content

Commit 7c54a69

Browse files
committed
Fix test failures; avoid hair border which renders strangely
1 parent 8e9a567 commit 7c54a69

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pandas/formats/excel.py

-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ def _border_style(self, style, width):
161161
width = float(width[:-2])
162162
if width < 1e-5:
163163
return None
164-
if width < 1:
165-
width_name = 'hair'
166164
elif width < 2:
167165
width_name = 'thin'
168166
elif width < 3.5:

pandas/tests/formats/test_to_excel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
{'font': {'strike': False}}),
5151
# - strike
5252
('text-decoration: line-through',
53-
{'font': {'strike': True, 'underline': False}}),
53+
{'font': {'strike': True}}),
5454
('text-decoration: underline line-through',
55-
{'font': {'strike': True, 'underline': True}}),
55+
{'font': {'strike': True, 'underline': 'single'}}),
5656
('text-decoration: underline; text-decoration: line-through',
57-
{'font': {'strike': True, 'underline': False}}),
57+
{'font': {'strike': True}}),
5858
# - color
5959
('color: red', {'font': {'color': 'FF0000'}}),
6060
('color: #ff0000', {'font': {'color': 'FF0000'}}),

0 commit comments

Comments
 (0)