diff options
Diffstat (limited to 'Lib/test/test_pickle.py')
-rw-r--r-- | Lib/test/test_pickle.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index 9cfb9b7..585644e 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -62,12 +62,11 @@ class PersPicklerTests(AbstractPersistentPicklerTests): return u.load() def test_main(): - loader = unittest.TestLoader() - suite = unittest.TestSuite() - suite.addTest(loader.loadTestsFromTestCase(PickleTests)) - suite.addTest(loader.loadTestsFromTestCase(PicklerTests)) - suite.addTest(loader.loadTestsFromTestCase(PersPicklerTests)) - test_support.run_suite(suite) + test_support.run_unittest( + PickleTests, + PicklerTests, + PersPicklerTests + ) test_support.run_doctest(pickle) if __name__ == "__main__": |