summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-20 21:39:07 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-20 21:39:07 (GMT)
commita56b42b1ba646170d5476e8925c56e2266b37f98 (patch)
treee3f0216eab4e2f997f57188f1b802dd42d9312da
parent2e2be3760ccdfd4bdde4afdd66f4078022ba3b61 (diff)
downloadcpython-a56b42b1ba646170d5476e8925c56e2266b37f98.zip
cpython-a56b42b1ba646170d5476e8925c56e2266b37f98.tar.gz
cpython-a56b42b1ba646170d5476e8925c56e2266b37f98.tar.bz2
Change testdescr.py to use the test_main() approach.
-rw-r--r--Lib/test/test_descr.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index d9c166b..fab1e66 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()