From: Fred Drake Date: Mon, 24 Sep 2001 20:19:08 +0000 (+0000) Subject: Adapt to use the test_main() approach. X-Git-Tag: v2.2.1c1~1645 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e822049efcfb3eafede8035609284656671aece4;p=python Adapt to use the test_main() approach. --- diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 86610662e3..85e60e6637 100755 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py @@ -280,4 +280,9 @@ DOCTYPE html [ ]) -test_support.run_unittest(HTMLParserTestCase) +def test_main(): + test_support.run_unittest(HTMLParserTestCase) + + +if __name__ == "__main__": + test_main()