From da42b90fa175e9135b69dad0bb865cf3b84f56f0 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 27 May 2026 13:20:10 +0100 Subject: [PATCH] Add back isinstance EventProtocol test --- tests/events/test_py_protocol.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/events/test_py_protocol.py b/tests/events/test_py_protocol.py index ee1e060236..cfcc3648ca 100644 --- a/tests/events/test_py_protocol.py +++ b/tests/events/test_py_protocol.py @@ -18,6 +18,7 @@ from unittest.mock import Mock from synapse.api.room_versions import RoomVersion, RoomVersions from synapse.events import EventBase from synapse.events.py_protocol import ( + EventProtocol, MSC4242Event, all_supports_msc4242_state_dag, supports_msc4242_state_dag, @@ -51,6 +52,9 @@ class TestMetaClass(TestCase): with self.assertRaises(NotImplementedError): isinstance(object(), MSC4242Event) + with self.assertRaises(NotImplementedError): + isinstance(object(), EventProtocol) + class SupportsMSC4242StateDagTestCase(TestCase): def test_single_event_msc4242(self) -> None: