From a2a21c37305f853c5ebdfc9e6cf4a0a3854f5999 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Tue, 14 Mar 2023 17:20:34 +0000 Subject: [PATCH] Skip the tor integration tests if tor is missing --- integration/conftest.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/integration/conftest.py b/integration/conftest.py index 33e7998c1..581fcb72c 100644 --- a/integration/conftest.py +++ b/integration/conftest.py @@ -451,10 +451,8 @@ def chutney(reactor, temp_dir): chutney_dir = join(temp_dir, 'chutney') mkdir(chutney_dir) - # TODO: - - # check for 'tor' binary explicitly and emit a "skip" if we can't - # find it + if not which("tor"): + pytest.skip("tor command-line tool is not available") # XXX yuck! should add a setup.py to chutney so we can at least # "pip install " and/or depend on chutney in "pip