Skip to content

Commit e7f11a0

Browse files
committed
test: remove irrelevant test
1 parent 1241a65 commit e7f11a0

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Lib/test/test_htmlparser.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -345,28 +345,6 @@ def test_escapable_raw_text_content(self):
345345
("data", content),
346346
("endtag", element_lower)])
347347

348-
def test_escapable_raw_text_with_closing_tags(self):
349-
# see issue #13358
350-
# make sure that HTMLParser calls handle_data only once for each CDATA.
351-
# The normal event collector normalizes the events in get_events,
352-
# so we override it to return the original list of events.
353-
class Collector(EventCollector):
354-
def get_events(self):
355-
return self.events
356-
357-
content = """<!-- not a comment --> &not-an-entity-ref;
358-
<a href="" /> </p><p> <span></span></style>
359-
'</script' + '>'"""
360-
for element in [' script', 'script ', ' script ',
361-
'\nscript', 'script\n', '\nscript\n']:
362-
element_lower = element.lower().strip()
363-
s = '<script>{content}</{element}>'.format(element=element,
364-
content=content)
365-
self._run_check(s, [("starttag", element_lower, []),
366-
("data", content),
367-
("endtag", element_lower)],
368-
collector=Collector(convert_charrefs=False))
369-
370348
def test_comments(self):
371349
html = ("<!-- I'm a valid comment -->"
372350
'<!--me too!-->'

0 commit comments

Comments
 (0)