From 0488b79f0f6786d3329cbc22ffc2b72416a2c9ec Mon Sep 17 00:00:00 2001 From: Bianca Henderson Date: Fri, 25 Apr 2025 11:18:53 -0400 Subject: [PATCH] Bugfix: fix unit-source for pre-release of ansible-core 2.20 (devel and milestone branch) (#903) (#911) This is a backport of PR #903 as merged into main (d4fc22c). SUMMARY CI fix for #904 ISSUE TYPE Bugfix Pull Request COMPONENT NAME tests/unit ADDITIONAL INFORMATION Reviewed-by: Bikouo Aubin --- tests/unit/module_utils/test_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/module_utils/test_core.py b/tests/unit/module_utils/test_core.py index a49ea12c..05e9b689 100644 --- a/tests/unit/module_utils/test_core.py +++ b/tests/unit/module_utils/test_core.py @@ -44,8 +44,8 @@ def test_warn_on_k8s_version(monkeypatch, stdin, capfd): assert return_value.get("warnings") is not None warnings = return_value["warnings"] assert len(warnings) == 1 - assert "kubernetes" in warnings[0] - assert MINIMAL_K8S_VERSION in warnings[0] + assert "kubernetes" in str(warnings[0]) + assert MINIMAL_K8S_VERSION in str(warnings[0]) dependencies = [