remove the '-' from mock
authorGuilherme Heuser Prestes <redacted>
Fri, 24 Apr 2020 19:13:41 +0000 (21:13 +0200)
committerGitHub <redacted>
Fri, 24 Apr 2020 19:13:41 +0000 (21:13 +0200)
testUpdateHostsFile.py

index 29746c444930cf27f51831e538e1e9dd195813e4..55f6db55ec2d73c4b0c3eb8a0d594f0d6ae8e5da 100644 (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")
git clone https://git.99rst.org/PROJECT