summaryrefslogtreecommitdiff
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-04-17 22:19:26 +0000
committerFred Drake <fdrake@acm.org>2003-04-17 22:19:26 +0000
commit94892ca38c3243a53cd543e89f4d36640c6676f2 (patch)
tree476f94331d06a2e065c0a308a4850aec2f7db8f3 /Lib/test/test_htmlparser.py
parenta31d716d7cd1e268d7f56c1b93bad1e9bc9be273 (diff)
downloadcpython-94892ca38c3243a53cd543e89f4d36640c6676f2.tar.gz
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 a10c40b2e2..a830ed7736 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("""