diff options
Diffstat (limited to 'Lib/test/test_sgmllib.py')
-rw-r--r-- | Lib/test/test_sgmllib.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py index 6a77e07..bc25bd0 100644 --- a/Lib/test/test_sgmllib.py +++ b/Lib/test/test_sgmllib.py @@ -307,6 +307,19 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' self.check_events(["<a b='>", "'>"], output) self.check_events(["<a b='>'", ">"], output) + output = [("comment", "abc")] + self._run_check(["", "<!--abc-->"], output) + self._run_check(["<", "!--abc-->"], output) + self._run_check(["<!", "--abc-->"], output) + self._run_check(["<!-", "-abc-->"], output) + self._run_check(["<!--", "abc-->"], output) + self._run_check(["<!--a", "bc-->"], output) + self._run_check(["<!--ab", "c-->"], output) + self._run_check(["<!--abc", "-->"], output) + self._run_check(["<!--abc-", "->"], output) + self._run_check(["<!--abc--", ">"], output) + self._run_check(["<!--abc-->", ""], output) + def _test_starttag_junk_chars(self): self.check_parse_error("<") self.check_parse_error("<>") |