From 6b2edd8f9d17c8edbff1fc0ac7d4aa58d7071e62 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Wed, 11 Jan 2023 14:46:54 +0100 Subject: [PATCH] FIX: Use correct error message serialization --- unittests/test_issues.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/test_issues.py b/unittests/test_issues.py index d284c2b2..2c45a6d7 100644 --- a/unittests/test_issues.py +++ b/unittests/test_issues.py @@ -36,4 +36,4 @@ def test_issue_100(): xml_el = lxml.etree.parse(filename).getroot() with raises(TypeError) as exc_info: db.common.models._parse_single_xml_element(xml_el) - assert "Invalid datatype: List valued properties" in exc_info.value.msg + assert "Invalid datatype: List valued properties" in str(exc_info.value) -- GitLab