Skip to content

Commit

Permalink
refactor python file
Browse files Browse the repository at this point in the history
  • Loading branch information
feng-j678 committed Sep 16, 2024
1 parent fd12e8c commit a037ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/tests/Test_ConfigurePatchingProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ def test_configure_patching_raise_exception_auto_assessment_systemd(self):
back_up_auto_assess_service_manager = runtime.configure_patching_processor.auto_assess_service_manager.systemd_exists
runtime.configure_patching_processor.auto_assess_service_manager.systemd_exists = lambda: False

self.assertRaises(Exception,
runtime.configure_patching_processor.start_configure_patching())
self.assertRaises(Exception, runtime.configure_patching_processor.start_configure_patching())

# restore
runtime.configure_patching_processor.auto_assess_service_manager.systemd_exists = back_up_auto_assess_service_manager

Expand Down

0 comments on commit a037ce5

Please sign in to comment.