broker tests: Fix reference to TimeoutError.

Seems Python 3.8+ moved it, and I took the reference from there.
pull/69/head
Stuart Longland 2021-07-08 17:18:26 +10:00 zatwierdzone przez Florian Ludwig
rodzic 3b793a706b
commit 5315e2d865
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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()