mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Run pre-commit autoupdate
Committed via https://github.com/asottile/all-repos
This commit is contained in:
parent
06d01c8c9d
commit
dc28922ccb
11 changed files with 125 additions and 101 deletions
|
|
@ -66,9 +66,9 @@ def test_find_executable_path_ext(in_tmpdir):
|
|||
"""Windows exports PATHEXT as a list of extensions to automatically add
|
||||
to executables when doing PATH searching.
|
||||
"""
|
||||
exe_path = os.path.abspath(write_executable(
|
||||
'/usr/bin/env sh', filename='run.myext',
|
||||
))
|
||||
exe_path = os.path.abspath(
|
||||
write_executable('/usr/bin/env sh', filename='run.myext'),
|
||||
)
|
||||
env_path = {'PATH': os.path.dirname(exe_path)}
|
||||
env_path_ext = dict(env_path, PATHEXT=os.pathsep.join(('.exe', '.myext')))
|
||||
assert parse_shebang.find_executable('run') is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue