mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:06:05 -04:00
Enable flake8-bugbear, but disable most checks. (#9499)
* Adds B00 to ignored checks. * Fixes remaining issues.
This commit is contained in:
parent
dd5e5dc1d6
commit
27d2820c33
12 changed files with 29 additions and 10 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue