summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sets.py44
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
#------------------------------------------------------------------------------