mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Factor out common boilerplate for test_support
This commit is contained in:
parent
c23fb77477
commit
9dcbbea878
4 changed files with 14 additions and 24 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue