summaryrefslogtreecommitdiff
path: root/tests/test_html_lexer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-12-25 13:16:56 +0100
committerGeorg Brandl <georg@python.org>2020-12-25 13:21:48 +0100
commit681487f82f55fba66f01f9913e4ff103e5b2ef4c (patch)
tree0e3f82343796411c1e9c71f5fa7c31e392d06bf5 /tests/test_html_lexer.py
parent6c820019a73a606940d7477619a5a9e6ad38761d (diff)
downloadpygments-git-681487f82f55fba66f01f9913e4ff103e5b2ef4c.tar.gz
all: weed out more backtracking string regexes
Diffstat (limited to 'tests/test_html_lexer.py')
-rw-r--r--tests/test_html_lexer.py4
1 files changed, 1 insertions, 3 deletions
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, ';'),
]