mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 04:34:16 +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
|
|
@ -16,8 +16,8 @@ def test_main(tmpdir, dest, expected): # pragma: no cover (symlinks)
|
|||
tmpdir.join('exists').ensure()
|
||||
symlink = tmpdir.join('symlink')
|
||||
symlink.mksymlinkto(tmpdir.join(dest))
|
||||
assert main((symlink.strpath,)) == expected
|
||||
assert main((str(symlink),)) == expected
|
||||
|
||||
|
||||
def test_main_normal_file(tmpdir):
|
||||
assert main((tmpdir.join('f').ensure().strpath,)) == 0
|
||||
assert main((str(tmpdir.join('f').ensure()),)) == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue