Skip to content

Commit da601e7

Browse files
committed
Stop using distutils in tests.
1 parent fb88db1 commit da601e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_holdup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# ruff: noqa: PTH110, PTH120, PTH123
22
import os
3+
import shutil
34
import socket
45
import threading
5-
from distutils import spawn
66

77
import pytest
88

99
pytest_plugins = ("pytester",)
1010

1111

1212
def has_docker():
13-
return spawn.find_executable("docker") and spawn.find_executable("docker-compose")
13+
return shutil.which("docker")
1414

1515

1616
@pytest.fixture(params=[[], ["--", "python", "-c", 'print("success !")']])

0 commit comments

Comments
 (0)