summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-04-17 22:19:26 (GMT)
committerFred Drake <fdrake@acm.org>2003-04-17 22:19:26 (GMT)
commitfafd56f439319c3044fdcc5b506f9c9824978407 (patch)
tree78118420c9fc4e66bbb4f1f6a15ea4221187b3b0 /Lib/test/test_htmlparser.py
parent243152384b201a07a6942b44a71aa41a4bf30cfe (diff)
downloadcpython-fafd56f439319c3044fdcc5b506f9c9824978407.zip
cpython-fafd56f439319c3044fdcc5b506f9c9824978407.tar.gz
cpython-fafd56f439319c3044fdcc5b506f9c9824978407.tar.bz2
Add test that demonstrates SGML-style handling of processing
instructions.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rwxr-xr-xLib/test/test_htmlparser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index a10c40b..a830ed7 100755
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -101,6 +101,9 @@ class HTMLParserTestCase(TestCaseBase):
self._run_check("<?processing instruction>", [
("pi", "processing instruction"),
])
+ self._run_check("<?processing instruction ?>", [
+ ("pi", "processing instruction ?"),
+ ])
def test_simple_html(self):
self._run_check("""