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

@ -118,7 +118,7 @@ def test_uninstall(tempdir_factory):
def _get_commit_output(tempdir_factory, touch_file='foo', **kwargs):
cmd_output('touch', touch_file)
open(touch_file, 'a').close()
cmd_output('git', 'add', touch_file)
return cmd_output_mocked_pre_commit_home(
'git', 'commit', '-am', 'Commit!', '--allow-empty',