Skip to content

Commit ed733e3

Browse files
committed
[DATALAD RUNCMD] chore: drop use of find_executable (use shutil.which)
=== Do not change lines below === { "chain": [], "cmd": "sed -i -e 's,from distutils.spawn import find_executable,from shutil import which,g' -e 's,find_executable(,which(,g' datalad_container/adapters/tests/test_oci_more.py", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 038a3d1 commit ed733e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datalad_container/adapters/tests/test_oci_more.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
See datalad_container.adapters.tests.test_oci for tests that do not depend on
44
this.
55
"""
6-
from distutils.spawn import find_executable
6+
from shutil import which
77

88
from datalad.api import (
99
Dataset,
@@ -34,7 +34,7 @@
3434
)
3535

3636
for dep in ["skopeo", "docker"]:
37-
if not find_executable(dep):
37+
if not which(dep):
3838
raise SkipTest("'{}' not found on path".format(dep))
3939

4040

0 commit comments

Comments
 (0)