Merge branch 'master' into issue-1332

This commit is contained in:
funilrys
2020-07-13 11:23:45 +02:00
4 changed files with 47 additions and 8 deletions

View File

@@ -1327,7 +1327,7 @@ class TestFlushDnsCache(BaseStdout):
self.assertIn(expected, output)
@mock.patch("os.path.isfile", side_effect=[True, False, False, True] + [False] * 10)
@mock.patch("subprocess.call", side_effect=[1, 0])
@mock.patch("subprocess.call", side_effect=[1, 0, 0])
def test_flush_posix_fail_then_succeed(self, *_):
with self.mock_property("platform.system") as obj:
obj.return_value = "Linux"