summary refs log tree commit diff
path: root/tests/replication/tcp
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-05-18 10:43:05 +0100
committerGitHub <noreply@github.com>2020-05-18 10:43:05 +0100
commit164f50f5f25a3204cce5fd2c8f196e9a9d4deb5d (patch)
treeb546d57768ee37c74147f7d7f179e3e69c1b8976 /tests/replication/tcp
parentAdd type hints to room member handlers (#7513) (diff)
downloadsynapse-164f50f5f25a3204cce5fd2c8f196e9a9d4deb5d.tar.xz
fix mypy for tests/replication (#7518)
Diffstat (limited to 'tests/replication/tcp')
-rw-r--r--tests/replication/tcp/test_commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/replication/tcp/test_commands.py b/tests/replication/tcp/test_commands.py
index 7ddfd0a733..60c10a441a 100644
--- a/tests/replication/tcp/test_commands.py
+++ b/tests/replication/tcp/test_commands.py
@@ -30,7 +30,7 @@ class ParseCommandTestCase(TestCase):
     def test_parse_rdata(self):
         line = 'RDATA events master 6287863 ["ev", ["$eventid", "!roomid", "type", null, null, null]]'
         cmd = parse_command_from_line(line)
-        self.assertIsInstance(cmd, RdataCommand)
+        assert isinstance(cmd, RdataCommand)
         self.assertEqual(cmd.stream_name, "events")
         self.assertEqual(cmd.instance_name, "master")
         self.assertEqual(cmd.token, 6287863)
@@ -38,7 +38,7 @@ class ParseCommandTestCase(TestCase):
     def test_parse_rdata_batch(self):
         line = 'RDATA presence master batch ["@foo:example.com", "online"]'
         cmd = parse_command_from_line(line)
-        self.assertIsInstance(cmd, RdataCommand)
+        assert isinstance(cmd, RdataCommand)
         self.assertEqual(cmd.stream_name, "presence")
         self.assertEqual(cmd.instance_name, "master")
         self.assertIsNone(cmd.token)