mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 18:46:53 +00:00
pre-commit-hooks: python3.6.1+
This commit is contained in:
parent
fd3bcbd96a
commit
261fb3d66c
3 changed files with 5 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ def test_integration_good_bad_lines(tmpdir, bad_lines, good_lines, retval):
|
|||
|
||||
assert main([file_path]) == retval
|
||||
|
||||
with open(file_path, 'r') as f:
|
||||
with open(file_path) as f:
|
||||
assert [line.rstrip() for line in f.readlines()] == good_lines
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue