Factor out common boilerplate for test_support

This commit is contained in:
Raymond Hettinger 2003-04-27 07:54:23 +00:00
parent c23fb77477
commit 9dcbbea878
4 changed files with 14 additions and 24 deletions

View file

@ -331,9 +331,7 @@ class BoolTest(unittest.TestCase):
self.assertEqual(cPickle.dumps(False, True), "I00\n.")
def test_main():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(BoolTest))
test_support.run_suite(suite)
test_support.run_classtests(BoolTest)
if __name__ == "__main__":
test_main()