mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 20:26:54 +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
|
|
@ -8,7 +8,7 @@ key = # INVALID
|
|||
|
||||
= "no key name" # INVALID
|
||||
""")
|
||||
ret = main((filename.strpath,))
|
||||
ret = main((str(filename),))
|
||||
assert ret == 1
|
||||
|
||||
|
||||
|
|
@ -25,12 +25,12 @@ name = "John"
|
|||
dob = 1979-05-27T07:32:00-08:00 # First class dates
|
||||
""",
|
||||
)
|
||||
ret = main((filename.strpath,))
|
||||
ret = main((str(filename),))
|
||||
assert ret == 0
|
||||
|
||||
|
||||
def test_toml_good_unicode(tmpdir):
|
||||
filename = tmpdir.join('f')
|
||||
filename.write_binary('letter = "\N{SNOWMAN}"\n'.encode())
|
||||
ret = main((filename.strpath,))
|
||||
ret = main((str(filename),))
|
||||
assert ret == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue