diff options
Diffstat (limited to 'Lib/test/test_profilehooks.py')
-rw-r--r-- | Lib/test/test_profilehooks.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_profilehooks.py b/Lib/test/test_profilehooks.py index 75599d9..ac8ebd8 100644 --- a/Lib/test/test_profilehooks.py +++ b/Lib/test/test_profilehooks.py @@ -349,11 +349,10 @@ def show_events(callable): def test_main(): - loader = unittest.TestLoader() - suite = unittest.TestSuite() - suite.addTest(loader.loadTestsFromTestCase(ProfileHookTestCase)) - suite.addTest(loader.loadTestsFromTestCase(ProfileSimulatorTestCase)) - test_support.run_suite(suite) + test_support.run_unittest( + ProfileHookTestCase, + ProfileSimulatorTestCase + ) if __name__ == "__main__": |