diff options
-rw-r--r-- | testing/test_parseopt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/test_parseopt.py b/testing/test_parseopt.py index ded5167d8..7c94fdb1e 100644 --- a/testing/test_parseopt.py +++ b/testing/test_parseopt.py @@ -1,7 +1,7 @@ import argparse -import distutils.spawn import os import shlex +import shutil import sys import py @@ -291,7 +291,7 @@ class TestParser: def test_argcomplete(testdir, monkeypatch): - if not distutils.spawn.find_executable("bash"): + if not shutil.which("bash"): pytest.skip("bash not available") script = str(testdir.tmpdir.join("test_argcomplete")) |