summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-03 03:38:01 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-03 03:38:01 (GMT)
commit27922eef358c4952ad06625338bcad1dd7174e44 (patch)
tree7bafca13bb31c0e853635b4868270b1baba58cf6
parent8b34e7cc402d1db5694525bd04d9c4b2a8b8b90f (diff)
downloadcpython-27922eef358c4952ad06625338bcad1dd7174e44.zip
cpython-27922eef358c4952ad06625338bcad1dd7174e44.tar.gz
cpython-27922eef358c4952ad06625338bcad1dd7174e44.tar.bz2
Apply the simplified test_support boilerplate.
-rw-r--r--Lib/test/test_random.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index 8929094..970b862 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -272,20 +272,18 @@ class TestModule(unittest.TestCase):
self.failUnless(Set(random.__all__) <= Set(dir(random)))
def test_main(verbose=None):
- suite = unittest.TestSuite()
- for testclass in (WichmannHill_TestBasicOps,
+ testclasses = (WichmannHill_TestBasicOps,
MersenneTwister_TestBasicOps,
TestDistributions,
- TestModule):
- suite.addTest(unittest.makeSuite(testclass))
- test_support.run_suite(suite)
+ TestModule)
+ test_support.run_unittest(*testclasses)
# verify reference counting
import sys
if verbose and hasattr(sys, "gettotalrefcount"):
counts = [None] * 5
for i in xrange(len(counts)):
- test_support.run_suite(suite)
+ test_support.run_unittest(*testclasses)
counts[i] = sys.gettotalrefcount()
print counts