From e822049efcfb3eafede8035609284656671aece4 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 24 Sep 2001 20:19:08 +0000 Subject: [PATCH] Adapt to use the test_main() approach. --- Lib/test/test_htmlparser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() -- 2.40.0