Skip to content

Commit

Permalink
Fix test failures; avoid hair border which renders strangely
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Apr 8, 2017
1 parent 8e9a567 commit 7c54a69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pandas/formats/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ def _border_style(self, style, width):
width = float(width[:-2])
if width < 1e-5:
return None
if width < 1:
width_name = 'hair'
elif width < 2:
width_name = 'thin'
elif width < 3.5:
Expand Down
6 changes: 3 additions & 3 deletions pandas/tests/formats/test_to_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
{'font': {'strike': False}}),
# - strike
('text-decoration: line-through',
{'font': {'strike': True, 'underline': False}}),
{'font': {'strike': True}}),
('text-decoration: underline line-through',
{'font': {'strike': True, 'underline': True}}),
{'font': {'strike': True, 'underline': 'single'}}),
('text-decoration: underline; text-decoration: line-through',
{'font': {'strike': True, 'underline': False}}),
{'font': {'strike': True}}),
# - color
('color: red', {'font': {'color': 'FF0000'}}),
('color: #ff0000', {'font': {'color': 'FF0000'}}),
Expand Down

0 comments on commit 7c54a69

Please sign in to comment.