diff options
author | Raymond Hettinger <python@rcn.com> | 2003-04-27 07:54:23 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-04-27 07:54:23 (GMT) |
commit | 9dcbbea87867f38f7994dd96388266114ef0c162 (patch) | |
tree | 4dfcbbd65dcca3232918b6e30dde5625f83435b2 /Lib/test/test_bisect.py | |
parent | c23fb774772949b7861f91eec987b1cd414d5a3c (diff) | |
download | cpython-9dcbbea87867f38f7994dd96388266114ef0c162.zip cpython-9dcbbea87867f38f7994dd96388266114ef0c162.tar.gz cpython-9dcbbea87867f38f7994dd96388266114ef0c162.tar.bz2 |
Factor out common boilerplate for test_support
Diffstat (limited to 'Lib/test/test_bisect.py')
-rw-r--r-- | Lib/test/test_bisect.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Lib/test/test_bisect.py b/Lib/test/test_bisect.py index 7357f53..f30114d 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__": |