diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-25 17:49:04 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-25 17:49:04 (GMT) |
commit | 62c62438ff05d7363be5f9f711d4f1e2f1a5f536 (patch) | |
tree | d144eaa97ee8223a2355b50ff5e75699ea05a044 | |
parent | de830ca4eb907ab8e6c4916698e06162d85aafdc (diff) | |
download | cpython-62c62438ff05d7363be5f9f711d4f1e2f1a5f536.zip cpython-62c62438ff05d7363be5f9f711d4f1e2f1a5f536.tar.gz cpython-62c62438ff05d7363be5f9f711d4f1e2f1a5f536.tar.bz2 |
Simplified construction of the test suite.
-rw-r--r-- | Lib/test/test_sets.py | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index 068b725..7b135ff 100644 --- a/Lib/test/test_sets.py +++ b/Lib/test/test_sets.py @@ -576,27 +576,29 @@ class TestCopyingNested(TestCopying): def makeAllTests(): suite = unittest.TestSuite() - suite.addTest(unittest.makeSuite(TestSetOfSets)) - suite.addTest(unittest.makeSuite(TestBasicOpsEmpty)) - suite.addTest(unittest.makeSuite(TestBasicOpsSingleton)) - suite.addTest(unittest.makeSuite(TestBasicOpsTuple)) - suite.addTest(unittest.makeSuite(TestBasicOpsTriple)) - suite.addTest(unittest.makeSuite(TestBinaryOps)) - suite.addTest(unittest.makeSuite(TestUpdateOps)) - suite.addTest(unittest.makeSuite(TestMutate)) - suite.addTest(unittest.makeSuite(TestSubsetEqualEmpty)) - suite.addTest(unittest.makeSuite(TestSubsetEqualNonEmpty)) - suite.addTest(unittest.makeSuite(TestSubsetEmptyNonEmpty)) - suite.addTest(unittest.makeSuite(TestSubsetPartial)) - suite.addTest(unittest.makeSuite(TestSubsetNonOverlap)) - suite.addTest(unittest.makeSuite(TestOnlySetsNumeric)) - suite.addTest(unittest.makeSuite(TestOnlySetsDict)) - suite.addTest(unittest.makeSuite(TestOnlySetsOperator)) - suite.addTest(unittest.makeSuite(TestCopyingEmpty)) - suite.addTest(unittest.makeSuite(TestCopyingSingleton)) - suite.addTest(unittest.makeSuite(TestCopyingTriple)) - suite.addTest(unittest.makeSuite(TestCopyingTuple)) - suite.addTest(unittest.makeSuite(TestCopyingNested)) + for klass in (TestSetOfSets, + TestBasicOpsEmpty, + TestBasicOpsSingleton, + TestBasicOpsTuple, + TestBasicOpsTriple, + TestBinaryOps, + TestUpdateOps, + TestMutate, + TestSubsetEqualEmpty, + TestSubsetEqualNonEmpty, + TestSubsetEmptyNonEmpty, + TestSubsetPartial, + TestSubsetNonOverlap, + TestOnlySetsNumeric, + TestOnlySetsDict, + TestOnlySetsOperator, + TestCopyingEmpty, + TestCopyingSingleton, + TestCopyingTriple, + TestCopyingTuple, + TestCopyingNested, + ): + suite.addTest(unittest.makeSuite(klass)) return suite #------------------------------------------------------------------------------ |