From 5315e2d8651135bd86ec80e36e98da5bb1b00769 Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Thu, 8 Jul 2021 17:18:26 +1000 Subject: [PATCH] broker tests: Fix reference to TimeoutError. Seems Python 3.8+ moved it, and I took the reference from there. --- tests/test_broker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_broker.py b/tests/test_broker.py index a1e8d87..0d9d5b5 100644 --- a/tests/test_broker.py +++ b/tests/test_broker.py @@ -312,7 +312,7 @@ async def test_client_publish_acl_forbidden(acl_broker): try: await sub_client.deliver_message(timeout=1) assert False, "Should not have worked" - except asyncio.exceptions.TimeoutError: + except asyncio.TimeoutError: pass await pub_client.disconnect() @@ -346,7 +346,7 @@ async def test_client_publish_acl_permitted_sub_forbidden(acl_broker): try: await sub_client2.deliver_message(timeout=1) assert False, "Should not have worked" - except asyncio.exceptions.TimeoutError: + except asyncio.TimeoutError: pass await pub_client.disconnect()