]> granicus.if.org Git - python/commitdiff
Use unittest.main() in test_htmlparser.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 2 Nov 2013 15:49:08 +0000 (17:49 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 2 Nov 2013 15:49:08 +0000 (17:49 +0200)
Lib/test/test_htmlparser.py

index b15b6fd4c6c0d0f8e472db770b33b59b31d26afa..e8b88576a0e07cd2879bd81903d245b580b5ea3d 100644 (file)
@@ -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()