summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rwxr-xr-xLib/test/test_htmlparser.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index 8661066..85e60e6 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()