Skip to content

Commit

Permalink
Remove assert that is wrong when #770 appears
Browse files Browse the repository at this point in the history
Related to #770.
  • Loading branch information
liZe committed Jan 21, 2019
1 parent 0083fce commit 89041e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions weasyprint/layout/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,10 @@ def auto_table_layout(context, box, containing_block):
else:
break
if upper_guess == lower_guess:
# TODO: Uncomment the assert when bugs #770 and #628 are closed
# Equivalent to "assert assignable_width == sum(upper_guess)"
assert abs(assignable_width - sum(upper_guess)) <= (
assignable_width * 1e-9)
# assert abs(assignable_width - sum(upper_guess)) <= (
# assignable_width * 1e-9)
table.column_widths = upper_guess
else:
added_widths = [
Expand Down

0 comments on commit 89041e8

Please sign in to comment.