From 5028f4d461fb0dbbfe7f0a952021af28b596d6af Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 2 Nov 2013 17:49:08 +0200 Subject: Use unittest.main() in test_htmlparser. --- Lib/test/test_htmlparser.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index b15b6fd..e8b8857 100644 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py @@ -753,11 +753,5 @@ class AttributesTolerantTestCase(AttributesStrictTestCase): ("data", "spam"), ("endtag", "a")]) - -def test_main(): - support.run_unittest(HTMLParserStrictTestCase, HTMLParserTolerantTestCase, - AttributesStrictTestCase, AttributesTolerantTestCase) - - if __name__ == "__main__": - test_main() + unittest.main() -- cgit v0.12