Replace calls to touch with open(..., 'a').close()

This commit is contained in:
Anthony Sottile 2017-07-08 15:43:36 -07:00
parent f33a254dd8
commit a4da7b8c8c
4 changed files with 6 additions and 6 deletions

View file

@ -68,7 +68,7 @@ def _make_conflict():
def in_merge_conflict(tempdir_factory):
path = make_consuming_repo(tempdir_factory, 'script_hooks_repo')
with cwd(path):
cmd_output('touch', 'dummy')
open('dummy', 'a').close()
cmd_output('git', 'add', 'dummy')
cmd_output('git', 'commit', '-m', 'Add config.')