diff options
author | Jonathan de Jong <jonathan@automatia.nl> | 2021-03-16 19:19:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 14:19:27 -0400 |
commit | 27d2820c33d94cd99aea128b6ade76a7de838c3d (patch) | |
tree | c81628d58ab2daf1184f1654df34ed0d2be30cd2 /tests | |
parent | Add SSO attribute requirements for OIDC providers (#9609) (diff) | |
download | synapse-27d2820c33d94cd99aea128b6ade76a7de838c3d.tar.xz |
Enable flake8-bugbear, but disable most checks. (#9499)
* Adds B00 to ignored checks. * Fixes remaining issues.
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 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. |