Adapt to use the test_main() approach.

This commit is contained in:
Fred Drake 2001-09-24 20:19:08 +00:00
parent a3bae3369c
commit e822049efc
1 changed files with 6 additions and 1 deletions

View File

@ -280,4 +280,9 @@ DOCTYPE html [
])
test_support.run_unittest(HTMLParserTestCase)
def test_main():
test_support.run_unittest(HTMLParserTestCase)
if __name__ == "__main__":
test_main()