From a25e4f679e4de4f2042fe3bc6328294ac0266b9a Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 21 Apr 2022 11:28:39 +0200 Subject: [PATCH] Remove distutils from unit tests. (#4545) (#4547) (cherry picked from commit d9ba598938428d1f87f9120970b1374bb50d336d) Co-authored-by: Felix Fontein --- .../source_control/gitlab/test_gitlab_protected_branch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_protected_branch.py b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_protected_branch.py index 026efb19d8..65a29c61ce 100644 --- a/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_protected_branch.py +++ b/tests/unit/plugins/modules/source_control/gitlab/test_gitlab_protected_branch.py @@ -7,7 +7,8 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest -from distutils.version import LooseVersion + +from ansible_collections.community.general.plugins.module_utils.version import LooseVersion from ansible_collections.community.general.plugins.modules.source_control.gitlab.gitlab_protected_branch import GitlabProtectedBranch