diff --git a/testing/test_parseopt.py b/testing/test_parseopt.py index ded5167d8da..7c94fdb1e20 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 @@ def test_multiple_metavar_help(self, parser): 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"))