diff options
author | Jonathan de Jong <jonathan@automatia.nl> | 2021-07-13 12:43:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 11:43:15 +0100 |
commit | 89cfc3dd9849b0580146151098ad039a7680c63f (patch) | |
tree | 97929d72b833ddd8e18070071a7b0bac7e969067 /tests/unittest.py | |
parent | Fix federation inbound age metric. (#10355) (diff) | |
download | synapse-89cfc3dd9849b0580146151098ad039a7680c63f.tar.xz |
[pyupgrade] `tests/` (#10347)
Diffstat (limited to '')
-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 74db7c08f1..907b94b10a 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))("Assert error for '.{}':".format(key)) from e + raise (type(e))(f"Assert error for '.{key}':") from e def assert_dict(self, required, actual): """Does a partial assert of a dict. |