Skip to content

Commit f1c9efa

Browse files
Add more tests: "<!---!>" and "<!--!>".
1 parent 0e6d20a commit f1c9efa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_htmlparser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ def test_comments(self):
344344
'<!----!>'
345345
'<!----!-->'
346346
'<!---- >-->'
347+
'<!---!>-->'
348+
'<!--!>-->'
347349
# nested-comment
348350
'<!-- <!-- nested --> -->'
349351
'<!--<!-->'
@@ -363,6 +365,8 @@ def test_comments(self):
363365
('comment', ''),
364366
('comment', '--!'),
365367
('comment', '-- >'),
368+
('comment', '-!>'),
369+
('comment', '!>'),
366370
('comment', ' <!-- nested '), ('data', ' -->'),
367371
('comment', '<!'),
368372
('comment', '<!'),

0 commit comments

Comments
 (0)