mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 04:54:16 +00:00
Fix PyPy
This commit is contained in:
parent
8328f8f518
commit
ba80c884f8
1 changed files with 2 additions and 1 deletions
|
|
@ -9,7 +9,8 @@ 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'),
|
||||||
):
|
):
|
||||||
open(filename, 'w').write(contents)
|
with open(filename, 'w') as f:
|
||||||
|
f.write(contents) # pragma: no cover (python 2.6 coverage bug)
|
||||||
|
|
||||||
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