From 155ab2628a1db0ff2ddaaf0117693baa6d474e0b Mon Sep 17 00:00:00 2001 From: "J.P" <70083705+stapmoshun@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:42:12 -0500 Subject: [PATCH] remove distutils --- tests/ssh/test_ssh.py | 4 ++-- tests/test_ping.py | 4 ++-- tests/test_shell_tests.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ssh/test_ssh.py b/tests/ssh/test_ssh.py index 9ee4ae88..23278414 100644 --- a/tests/ssh/test_ssh.py +++ b/tests/ssh/test_ssh.py @@ -6,8 +6,8 @@ # https://github.com/actions/runner-images/issues/1519 ping does not work in github runner so we skip it. import os -from distutils.util import strtobool -github_action = strtobool(os.getenv('GITHUB_ACTIONS', 'false')) +from cloudmesh.common.util import str_bool +github_action = str_bool(os.getenv('GITHUB_ACTIONS', 'false')) import pytest from cloudmesh.common.Benchmark import Benchmark diff --git a/tests/test_ping.py b/tests/test_ping.py index acf60b0c..a00a2cd7 100644 --- a/tests/test_ping.py +++ b/tests/test_ping.py @@ -19,8 +19,8 @@ # https://github.com/actions/runner-images/issues/1519 ping does not work in github runner so we skip it. import os -from distutils.util import strtobool -github_action = strtobool(os.getenv('GITHUB_ACTIONS', 'false')) +from cloudmesh.common.util import str_bool +github_action = str_bool(os.getenv('GITHUB_ACTIONS', 'false')) # multiping only works if you have root, so we can not use it # from multiping import MultiPing diff --git a/tests/test_shell_tests.py b/tests/test_shell_tests.py index b6d76668..e68f4b83 100644 --- a/tests/test_shell_tests.py +++ b/tests/test_shell_tests.py @@ -23,8 +23,8 @@ # https://github.com/actions/runner-images/issues/1519 ping does not work in github runner so we skip it. import os -from distutils.util import strtobool -github_action = strtobool(os.getenv('GITHUB_ACTIONS', 'false')) +from cloudmesh.common.util import str_bool +github_action = str_bool(os.getenv('GITHUB_ACTIONS', 'false')) class TestShell: