mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Merge branch 'master' into issue-1332
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user