From: Guido van Rossum Date: Thu, 20 Sep 2001 21:39:07 +0000 (+0000) Subject: Change testdescr.py to use the test_main() approach. X-Git-Tag: v2.2.1c1~1700 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a56b42b1ba646170d5476e8925c56e2266b37f98;p=python Change testdescr.py to use the test_main() approach. --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index d9c166bb14..fab1e66dad 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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()