diff options
author | Schnuffle <schnuffle@gotec-cafe.de> | 2018-09-27 13:38:50 +0200 |
---|---|---|
committer | Schnuffle <schnuffle@gotec-cafe.de> | 2018-09-27 13:38:50 +0200 |
commit | dc5db01ff25dac6ec74ceea9b4d815a8c43cd7dd (patch) | |
tree | 7d60636ecf51d8cfef4340326b99b6506f4cccfd /tests | |
parent | Merge pull request #3963 from matrix-org/rav/get_state_for_room_docstring (diff) | |
download | synapse-dc5db01ff25dac6ec74ceea9b4d815a8c43cd7dd.tar.xz |
Replaced all occurences of e.message with str(e)
Signed-off-by: Schnuffle <schnuffle@github.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittest.py | 2 |
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. |