diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py
index 17208e7c960ac62fa3860b57d6f8e5e81b56fc3f..e7bd16cada4004a1405d7d78deee2f905fc1c29a 100644
--- a/tests/system/shared/editor_utils.py
+++ b/tests/system/shared/editor_utils.py
@@ -216,7 +216,7 @@ def __handleColorTips__(colTip, expectedColor):
     if rgb.rgba() == cmp.rgba():
         test.passes("ColorTip verified")
     else:
-        test.fail("ColorTip does not match - expected color '%s' got '%s'" % (rgb.rgb(), cmp.rgb()))
+        test.fail("ColorTip does not match - expected color '%s' got '%s'" % (cmp.rgb(), rgb.rgb()))
 
 # function that checks whether all expected properties (including their values)
 # match the given properties