mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Fix Python2.6 coverage.
This commit is contained in:
parent
8270d81308
commit
8328f8f518
1 changed files with 1 additions and 2 deletions
|
|
@ -9,8 +9,7 @@ def test_fixes_trailing_whitespace(tmpdir):
|
|||
('foo.py', 'foo \nbar \n'),
|
||||
('bar.py', 'bar\t\nbaz\t\n'),
|
||||
):
|
||||
with open(filename, 'w') as file_obj:
|
||||
file_obj.write(contents)
|
||||
open(filename, 'w').write(contents)
|
||||
|
||||
ret = fix_trailing_whitespace(['foo.py', 'bar.py'])
|
||||
assert ret == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue