From 3d4125505bcf4670d567482ecee1ac93e4d63250 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 08:43:56 +0200 Subject: [PATCH] [PR #12295/75d3a78d backport][stable-13] Remove unittest.main() (#12297) Remove unittest.main() (#12295) Remove unittest.main(). (cherry picked from commit 75d3a78d6d045bf6b3dabf8e54f91590521fcd32) Co-authored-by: Felix Fontein --- tests/unit/plugins/modules/test_logrotate.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/unit/plugins/modules/test_logrotate.py b/tests/unit/plugins/modules/test_logrotate.py index f428e6eac7..c8055f98dd 100644 --- a/tests/unit/plugins/modules/test_logrotate.py +++ b/tests/unit/plugins/modules/test_logrotate.py @@ -945,7 +945,3 @@ class TestLogrotateConfig(unittest.TestCase): self.mock_module.run_command.assert_called_once() call_args = self.mock_module.run_command.call_args[0][0] self.assertEqual(call_args[0], test_logrotate_path) - - -if __name__ == "__main__": - unittest.main()