summaryrefslogtreecommitdiff
path: root/Lib/test/test_bisect.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-04-27 07:54:23 +0000
committerRaymond Hettinger <python@rcn.com>2003-04-27 07:54:23 +0000
commit5c548b27a686f4a9002025b3ff08b2ba3804580c (patch)
treecdf9d97f15306f7006369922c4524eb97c9fcc44 /Lib/test/test_bisect.py
parent2a7d321149a0699756b4fdb6f429d5a4fac90f8b (diff)
downloadcpython-5c548b27a686f4a9002025b3ff08b2ba3804580c.tar.gz
Factor out common boilerplate for test_support
Diffstat (limited to 'Lib/test/test_bisect.py')
-rw-r--r--Lib/test/test_bisect.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/Lib/test/test_bisect.py b/Lib/test/test_bisect.py
index 7357f53436..f30114d494 100644
--- a/Lib/test/test_bisect.py
+++ b/Lib/test/test_bisect.py
@@ -192,24 +192,14 @@ a priority queue (example courtesy of Fredrik Lundh):
"""
-#==============================================================================
-
-def makeAllTests():
- suite = unittest.TestSuite()
- for klass in (TestBisect,
- TestInsort
- ):
- suite.addTest(unittest.makeSuite(klass))
- return suite
-
#------------------------------------------------------------------------------
__test__ = {'libreftest' : libreftest}
def test_main(verbose=None):
from test import test_bisect
- suite = makeAllTests()
- test_support.run_suite(suite)
+ test_support.run_classtests(TestBisect,
+ TestInsort)
test_support.run_doctest(test_bisect, verbose)
if __name__ == "__main__":