mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Replace calls to touch with open(..., 'a').close()
This commit is contained in:
parent
f33a254dd8
commit
a4da7b8c8c
4 changed files with 6 additions and 6 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue