diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:14:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:14:57 +0000 |
commit | bdd97c38eaba207665d85bc1ad63341337f41ac6 (patch) | |
tree | 2b4ae82c13c4910fd431b44f17532d78deb375b8 /tests/parse_shebang_test.py | |
parent | Releasing debian version 3.4.0-1. (diff) | |
download | pre-commit-bdd97c38eaba207665d85bc1ad63341337f41ac6.tar.xz pre-commit-bdd97c38eaba207665d85bc1ad63341337f41ac6.zip |
Merging upstream version 3.5.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/parse_shebang_test.py')
-rw-r--r-- | tests/parse_shebang_test.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/parse_shebang_test.py b/tests/parse_shebang_test.py index dd97ca5..bd4384d 100644 --- a/tests/parse_shebang_test.py +++ b/tests/parse_shebang_test.py @@ -133,17 +133,17 @@ def test_normalize_cmd_PATH(): def test_normalize_cmd_shebang(in_tmpdir): - echo = _echo_exe().replace(os.sep, '/') - path = write_executable(echo) - assert parse_shebang.normalize_cmd((path,)) == (echo, path) + us = sys.executable.replace(os.sep, '/') + path = write_executable(us) + assert parse_shebang.normalize_cmd((path,)) == (us, path) def test_normalize_cmd_PATH_shebang_full_path(in_tmpdir): - echo = _echo_exe().replace(os.sep, '/') - path = write_executable(echo) + us = sys.executable.replace(os.sep, '/') + path = write_executable(us) with bin_on_path(): ret = parse_shebang.normalize_cmd(('run',)) - assert ret == (echo, os.path.abspath(path)) + assert ret == (us, os.path.abspath(path)) def test_normalize_cmd_PATH_shebang_PATH(in_tmpdir): |