1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-30 00:46:21 +00:00

[PR #11048/ebf45260 backport][stable-12] remove conditional code for old snakes (#11050)

remove conditional code for old snakes (#11048)

* remove conditional code for old snakes

* remove conditional code for old snakes

* reformat

* add changelog frag

(cherry picked from commit ebf45260ce)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-11-08 20:55:09 +01:00 committed by GitHub
parent 16f1d07509
commit caebf65948
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 26 additions and 105 deletions

View file

@ -19,7 +19,6 @@ pytestmark = []
try:
from .gitlab import (
GitlabModuleTestCase,
python_version_match_requirement,
resp_get_project,
resp_find_project_deploy_key,
resp_create_project_deploy_key,
@ -27,8 +26,7 @@ try:
)
# GitLab module requirements
if python_version_match_requirement():
from gitlab.v4.objects import ProjectKey
from gitlab.v4.objects import ProjectKey
except ImportError:
pytestmark.append(pytest.mark.skip("Could not load gitlab module required for testing"))
# Need to set these to something so that we don't fail when parsing