summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 17:49:30 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 17:49:30 +0100
commitea35d2cddc70c905976206bbdd088ee3c51419d7 (patch)
tree7f3d720fa0b083ad789ea4a2e9b772b01fb1901a /tests/unittest.py
parentMerge commit 'd315e9644' into anoa/dinsic_release_1_31_0 (diff)
parentFix bad naming of storage function (#9637) (diff)
downloadsynapse-ea35d2cddc70c905976206bbdd088ee3c51419d7.tar.xz
Merge commit 'ad721fc55' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'tests/unittest.py')
-rw-r--r--tests/unittest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py

index ca7031c724..224f037ce1 100644 --- a/tests/unittest.py +++ b/tests/unittest.py
@@ -140,7 +140,7 @@ class TestCase(unittest.TestCase): try: self.assertEquals(attrs[key], getattr(obj, key)) except AssertionError as e: - raise (type(e))(e.message + " for '.%s'" % key) + raise (type(e))("Assert error for '.{}':".format(key)) from e def assert_dict(self, required, actual): """Does a partial assert of a dict.