diff --git a/testgres/utils.py b/testgres/utils.py index 4d99c69d..d8006d08 100644 --- a/testgres/utils.py +++ b/testgres/utils.py @@ -12,7 +12,10 @@ from contextlib import contextmanager from packaging.version import Version -from distutils.spawn import find_executable +try: + from shutil import which as find_executable +except ImportError: + from distutils.spawn import find_executable from six import iteritems from .config import testgres_config