From d2c606c911fabe9bb0240f0daf76b2d53e80274f Mon Sep 17 00:00:00 2001 From: Yuriy Novostavskiy Date: Thu, 24 Apr 2025 16:56:24 +0200 Subject: [PATCH] Bugfix: fix unit-source for pre-release of ansible-core 2.20 (devel and milestone branch) (#903) SUMMARY CI fix for #904 ISSUE TYPE Bugfix Pull Request COMPONENT NAME tests/unit ADDITIONAL INFORMATION Reviewed-by: Mike Graves Reviewed-by: Bianca Henderson (cherry picked from commit d4fc22c74e9c90ecfc4313166fb678734b794244) --- 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 a49ea12cc7..05e9b68910 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 = [