Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.