From a27aa375970bd535b8f871a834d2744dd95b0a15 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 13 Dec 2021 11:16:43 +0100 Subject: [PATCH] Fix overflow-wrap test --- tests/test_text.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_text.py b/tests/test_text.py index e5a766e6..6edcbff6 100644 --- a/tests/test_text.py +++ b/tests/test_text.py @@ -925,8 +925,8 @@ def test_overflow_wrap(wrap, text, test, full_text): @pytest.mark.parametrize('wrap, text, body_width, expected_width', ( ('anywhere', 'aaaaaa', 10, 20), ('anywhere', 'aaaaaa', 40, 40), - ('break-word', 'aaaaaa', 40, 100), - ('normal', 'aaaaaa', 40, 100), + ('break-word', 'aaaaaa', 40, 120), + ('normal', 'aaaaaa', 40, 120), )) def test_overflow_wrap_2(wrap, text, body_width, expected_width): page, = render_pages(''' @@ -935,8 +935,7 @@ def test_overflow_wrap_2(wrap, text, body_width, expected_width): body {width: %dpx; font-family: weasyprint; font-size: 20px; } table {overflow-wrap: %s; white-space: normal; } -
%s - ''' % (body_width, wrap, text)) +
%s''' % (body_width, wrap, text)) html, = page.children body, = html.children table_wrapper, = body.children