From e822049efcfb3eafede8035609284656671aece4 Mon Sep 17 00:00:00 2001
From: Fred Drake <fdrake@acm.org>
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 86610662e3f..85e60e66373 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.30.9