remove the '-' from mock

This commit is contained in:
Guilherme Heuser Prestes
2020-04-24 21:13:41 +02:00
committed by GitHub
parent ef6cff0702
commit b40aa38ee6

View File

@@ -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")