summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-09-24 20:19:08 (GMT)
committerFred Drake <fdrake@acm.org>2001-09-24 20:19:08 (GMT)
commite822049efcfb3eafede8035609284656671aece4 (patch)
tree9919bc219f8717dbef70c4b4828735bb02ba72d8 /Lib/test/test_htmlparser.py
parenta3bae3369cca83ee485ed3293e2ad4c53691ba1a (diff)
downloadcpython-e822049efcfb3eafede8035609284656671aece4.zip
cpython-e822049efcfb3eafede8035609284656671aece4.tar.gz
cpython-e822049efcfb3eafede8035609284656671aece4.tar.bz2
Adapt to use the test_main() approach.
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()