From a6735102233b5c8be445dba592e417271f1efa51 Mon Sep 17 00:00:00 2001 From: Yongtao Huang Date: Fri, 9 Jan 2026 13:37:50 +0800 Subject: [PATCH] remove unintended unittest.main() in live collector tests The test file contained a stray `unittest.main()` in the middle of the module. Remove it. Signed-off-by: Yongtao Huang --- .../test_sampling_profiler/test_live_collector_interaction.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_interaction.py b/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_interaction.py index 8342faffb94762..baf478133fc665 100644 --- a/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_interaction.py +++ b/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_interaction.py @@ -705,10 +705,6 @@ def test_filter_prompt_displayed(self): self.assertTrue(self.display.contains_text("myfilter")) -if __name__ == "__main__": - unittest.main() - - class TestLiveCollectorThreadNavigation(unittest.TestCase): """Tests for thread navigation functionality."""