summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorSchnuffle <schnuffle@gotec-cafe.de>2018-09-27 13:38:50 +0200
committerSchnuffle <schnuffle@gotec-cafe.de>2018-09-27 13:38:50 +0200
commitdc5db01ff25dac6ec74ceea9b4d815a8c43cd7dd (patch)
tree7d60636ecf51d8cfef4340326b99b6506f4cccfd /tests/unittest.py
parentMerge pull request #3963 from matrix-org/rav/get_state_for_room_docstring (diff)
downloadsynapse-dc5db01ff25dac6ec74ceea9b4d815a8c43cd7dd.tar.xz
Replaced all occurences of e.message with str(e)
Signed-off-by: Schnuffle  <schnuffle@github.com>
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 ef905e6389..043710afaf 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -121,7 +121,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))(str(e) + " for '.%s'" % key)
 
     def assert_dict(self, required, actual):
         """Does a partial assert of a dict.