diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-09-27 23:39:45 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-27 23:39:45 +1000 |
commit | a512e637ac0df0d32559af64418691a2829800a6 (patch) | |
tree | a7c14c4053e9a051d13b53c5c03391183e64ef34 /tests | |
parent | Run our oldest supported configuration in CI (#3952) (diff) | |
parent | Update 3970.bugfix (diff) | |
download | synapse-a512e637ac0df0d32559af64418691a2829800a6.tar.xz |
Merge pull request #3970 from schnuffle/develop-py3
Replaced all occurences of e.message with str(e)
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. |