mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43786 from twangboy/win_fix_test_zypper
Fix `unit.modules.test_zypper` for Windows
This commit is contained in:
commit
10ddb8491c
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class ZypperTestCase(TestCase, LoaderModuleMockMixin):
|
|||
}
|
||||
with patch.dict('salt.modules.zypper.__salt__', {'cmd.run_all': MagicMock(return_value=ref_out)}):
|
||||
with self.assertRaisesRegex(CommandExecutionError,
|
||||
"^Zypper command failure: Some handled zypper internal error\nAnother zypper internal error$"):
|
||||
"^Zypper command failure: Some handled zypper internal error{0}Another zypper internal error$".format(os.linesep)):
|
||||
zypper.list_upgrades(refresh=False)
|
||||
|
||||
# Test unhandled error
|
||||
|
|
Loading…
Add table
Reference in a new issue