mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 20:44:18 +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'),
|
('foo.py', 'foo \nbar \n'),
|
||||||
('bar.py', 'bar\t\nbaz\t\n'),
|
('bar.py', 'bar\t\nbaz\t\n'),
|
||||||
):
|
):
|
||||||
with open(filename, 'w') as file_obj:
|
open(filename, 'w').write(contents)
|
||||||
file_obj.write(contents)
|
|
||||||
|
|
||||||
ret = fix_trailing_whitespace(['foo.py', 'bar.py'])
|
ret = fix_trailing_whitespace(['foo.py', 'bar.py'])
|
||||||
assert ret == 1
|
assert ret == 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue