From 681487f82f55fba66f01f9913e4ff103e5b2ef4c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 25 Dec 2020 13:16:56 +0100 Subject: all: weed out more backtracking string regexes --- tests/test_html_lexer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/test_html_lexer.py') diff --git a/tests/test_html_lexer.py b/tests/test_html_lexer.py index 9ac72e33..62f1c8d4 100644 --- a/tests/test_html_lexer.py +++ b/tests/test_html_lexer.py @@ -65,9 +65,7 @@ def test_long_unclosed_javascript_fragment(lexer_html): tokens_body = [ (Token.Name.Other, 'alert'), (Token.Punctuation, '('), - (Token.Literal.String.Double, '"'), - (Token.Literal.String.Double, 'hi'), - (Token.Literal.String.Double, '"'), + (Token.Literal.String.Double, '"hi"'), (Token.Punctuation, ')'), (Token.Punctuation, ';'), ] -- cgit v1.2.1