mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
remove the '-' from mock
This commit is contained in:
committed by
GitHub
parent
ef6cff0702
commit
b40aa38ee6
@@ -1376,7 +1376,7 @@ class TestRemoveOldHostsFile(BaseMockDir):
|
||||
contents = f.read()
|
||||
self.assertEqual(contents, "")
|
||||
|
||||
@mock.patch("time.strftime", return_value="-new")
|
||||
@mock.patch("time.strftime", return_value="new")
|
||||
def test_remove_hosts_file_backup(self, _):
|
||||
with open(self.hosts_file, "w") as f:
|
||||
f.write("foo")
|
||||
|
||||
Reference in New Issue
Block a user