diff --git a/tests/pytests/unit/modules/test_win_pkg.py b/tests/pytests/unit/modules/test_win_pkg.py index 1cc0df753335..168c24aff146 100644 --- a/tests/pytests/unit/modules/test_win_pkg.py +++ b/tests/pytests/unit/modules/test_win_pkg.py @@ -323,8 +323,8 @@ def test_pkg_install_log_message(caplog): assert ( 'PKG : cmd: C:\\WINDOWS\\system32\\cmd.exe /s /c "runme.exe" /s -e ' "True -test_flag True" - ) in caplog.messages - assert "PKG : pwd: " in caplog.messages + ).lower() in [x.lower() for x in caplog.messages] + assert "PKG : pwd: ".lower() in [x.lower() for x in caplog.messages] assert "PKG : retcode: 0" in caplog.messages