aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ice_validator/tests/test_get_attr_usage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice_validator/tests/test_get_attr_usage.py b/ice_validator/tests/test_get_attr_usage.py
index 5180add..e7adf64 100644
--- a/ice_validator/tests/test_get_attr_usage.py
+++ b/ice_validator/tests/test_get_attr_usage.py
@@ -60,12 +60,12 @@ class GetAttrValidator:
)
def add_error(self, path, arg, message):
- path_str = ".".join(path)
+ path_str = ".".join(map(str, path))
self.errors.append("{} {}: {}".format(path_str, arg, message))
@property
def error_message(self):
- errs = ", ".join(self.errors)
+ errs = "\n".join(self.errors)
return "Invalid get_attr usage detected: {}".format(errs)