diff --git a/tests/test_misc.py b/tests/test_misc.py
index 79aff21b565aaa76703bec3b423dcd042adc1dbf..246fdcff20ecddd6cb1a0e0355e9e31d31e573f9 100644
--- a/tests/test_misc.py
+++ b/tests/test_misc.py
@@ -499,7 +499,7 @@ def test_retrieve_wrong_role(clear_database):
     assert entity.role == "Record"
     with raises(ValueError) as cm:
         entity.retrieve()
-    assert cm.value.args[0] == ("The resulting entity had a different role "
+    assert cm.value.args[0].startswith("The resulting entity had a different role "
                                 "(RecordType) than the local one (Record). "
                                 "This probably means, that the entity was "
                                 "intialized with a wrong class by this client "