diff options
author | Georg Brandl <georg@python.org> | 2008-05-20 07:58:42 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-20 07:58:42 (GMT) |
commit | bcdafa44f2a0147f97d2426ef0552c227a219f2e (patch) | |
tree | eec019cddb7505288c3dbdb63c812e646e3c5751 /Lib/test | |
parent | b1527abbfc4a0eb451359098a3930f7336f47202 (diff) | |
download | cpython-bcdafa44f2a0147f97d2426ef0552c227a219f2e.zip cpython-bcdafa44f2a0147f97d2426ef0552c227a219f2e.tar.gz cpython-bcdafa44f2a0147f97d2426ef0552c227a219f2e.tar.bz2 |
Remove html package and fix test_htmlparser.
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/test_htmlparser.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 4757b22..810af6c 100755 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py @@ -1,17 +1,17 @@ """Tests for HTMLParser.py.""" -import html.parser +import HTMLParser import pprint import unittest from test import test_support -class EventCollector(html.parser.HTMLParser): +class EventCollector(HTMLParser.HTMLParser): def __init__(self): self.events = [] self.append = self.events.append - html.parser.HTMLParser.__init__(self) + HTMLParser.HTMLParser.__init__(self) def get_events(self): # Normalize the list of events so that buffer artefacts don't @@ -88,10 +88,10 @@ class TestCaseBase(unittest.TestCase): def _parse_error(self, source): def parse(source=source): - parser = html.parser.HTMLParser() + parser = HTMLParser.HTMLParser() parser.feed(source) parser.close() - self.assertRaises(html.parser.HTMLParseError, parse) + self.assertRaises(HTMLParser.HTMLParseError, parse) class HTMLParserTestCase(TestCaseBase): |