From 5f3db3a36610366e12ba14cd688d3d259917f33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Sun, 14 Feb 2021 14:42:49 +0100 Subject: Fix various issues found by make check. --- tests/test_html_lexer.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/test_html_lexer.py') diff --git a/tests/test_html_lexer.py b/tests/test_html_lexer.py index ddf42ebb..0d4f0824 100644 --- a/tests/test_html_lexer.py +++ b/tests/test_html_lexer.py @@ -28,7 +28,8 @@ def test_happy_javascript_fragment(lexer_html): start_time = time.time() tokens = list(lexer_html.get_tokens(fragment)) assert all(x[1] != Token.Error for x in tokens) - assert time.time() - start_time < MAX_HL_TIME, 'The HTML lexer might have an expensive happy-path script case' + assert time.time() - start_time < MAX_HL_TIME, \ + 'The HTML lexer might have an expensive happy-path script case' def test_happy_css_fragment(lexer_html): @@ -38,7 +39,8 @@ def test_happy_css_fragment(lexer_html): start_time = time.time() tokens = list(lexer_html.get_tokens(fragment)) assert all(x[1] != Token.Error for x in tokens) - assert time.time() - start_time < MAX_HL_TIME, 'The HTML lexer might have an expensive happy-path style case' + assert time.time() - start_time < MAX_HL_TIME, \ + 'The HTML lexer might have an expensive happy-path style case' def test_long_unclosed_javascript_fragment(lexer_html): @@ -48,7 +50,8 @@ def test_long_unclosed_javascript_fragment(lexer_html): fragment = "