Merge branch 'master' into issue-1332

This commit is contained in:
funilrys committed 2020-07-13 11:23:45 +02:00
commit c756858a1b
4 files changed
+47 -8

No files matched your search

+1 -1
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"