diff options
Diffstat (limited to 'Lib/test/test_xpickle.py')
-rw-r--r-- | Lib/test/test_xpickle.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/test/test_xpickle.py b/Lib/test/test_xpickle.py index cc458ad..42cd0f4 100644 --- a/Lib/test/test_xpickle.py +++ b/Lib/test/test_xpickle.py @@ -35,12 +35,10 @@ class DumpPickle_LoadCPickle(AbstractPickleTests): return cPickle.loads(buf) def test_main(): - suite = unittest.TestSuite() - for test in (DumpCPickle_LoadPickle, - DumpPickle_LoadCPickle, - ): - suite.addTest(unittest.makeSuite(test)) - test_support.run_suite(suite) + test_support.run_unittest( + DumpCPickle_LoadPickle, + DumpPickle_LoadCPickle + ) if __name__ == "__main__": test_main() |