Adapt to use the test_main() approach.
This commit is contained in:
parent
a3bae3369c
commit
e822049efc
|
@ -280,4 +280,9 @@ DOCTYPE html [
|
|||
])
|
||||
|
||||
|
||||
test_support.run_unittest(HTMLParserTestCase)
|
||||
def test_main():
|
||||
test_support.run_unittest(HTMLParserTestCase)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
|
|
Loading…
Reference in New Issue