]> granicus.if.org Git - python/commitdiff
Adapt to use the test_main() approach.
authorFred Drake <fdrake@acm.org>
Mon, 24 Sep 2001 20:19:08 +0000 (20:19 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 24 Sep 2001 20:19:08 +0000 (20:19 +0000)
Lib/test/test_htmlparser.py

index 86610662e3ff1d0cae29365d8470446963d57280..85e60e66373886190ff94d45bfe78149a9a9451e 100755 (executable)
@@ -280,4 +280,9 @@ DOCTYPE html [
             ])
 
 
-test_support.run_unittest(HTMLParserTestCase)
+def test_main():
+    test_support.run_unittest(HTMLParserTestCase)
+
+
+if __name__ == "__main__":
+    test_main()