git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
ef6cff0
)
remove the '-' from mock
author
Guilherme Heuser Prestes
<redacted>
Fri, 24 Apr 2020 19:13:41 +0000
(21:13 +0200)
committer
GitHub
<redacted>
Fri, 24 Apr 2020 19:13:41 +0000
(21:13 +0200)
testUpdateHostsFile.py
patch
|
blob
|
history
diff --git
a/testUpdateHostsFile.py
b/testUpdateHostsFile.py
index 29746c444930cf27f51831e538e1e9dd195813e4..55f6db55ec2d73c4b0c3eb8a0d594f0d6ae8e5da 100644
(file)
--- a/
testUpdateHostsFile.py
+++ b/
testUpdateHostsFile.py
@@
-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