mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 20:16:53 +00:00
Don't use LocalPath.strpath
This commit is contained in:
parent
e37b2795ff
commit
f35bfed79e
23 changed files with 69 additions and 69 deletions
|
|
@ -39,7 +39,7 @@ TEST_SORTS = [
|
|||
|
||||
@pytest.mark.parametrize('bad_lines,good_lines,retval', TEST_SORTS)
|
||||
def test_integration_good_bad_lines(tmpdir, bad_lines, good_lines, retval):
|
||||
file_path = os.path.join(tmpdir.strpath, 'foo.yaml')
|
||||
file_path = os.path.join(str(tmpdir), 'foo.yaml')
|
||||
|
||||
with open(file_path, 'w') as f:
|
||||
f.write('\n'.join(bad_lines) + '\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue