This commit is contained in:
Anthony Sottile 2014-04-13 22:53:54 -07:00
parent 8328f8f518
commit ba80c884f8

View file

@ -9,7 +9,8 @@ def test_fixes_trailing_whitespace(tmpdir):
('foo.py', 'foo \nbar \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'])
assert ret == 1