Change testdescr.py to use the test_main() approach.

This commit is contained in:
Guido van Rossum 2001-09-20 21:39:07 +00:00
parent 2e2be3760c
commit a56b42b1ba
1 changed files with 4 additions and 4 deletions

View File

@ -1952,7 +1952,7 @@ def coercions():
coerce(0j, C(0))
def all():
def test_main():
lists()
dicts()
dict_constructor()
@ -1992,7 +1992,7 @@ def all():
classic_comparisons()
rich_comparisons()
coercions()
if verbose: print "All OK"
all()
if verbose: print "All OK"
if __name__ == "__main__":
test_main()