kopia lustrzana https://github.com/Yakifo/amqtt
broker tests: Fix reference to TimeoutError.
Seems Python 3.8+ moved it, and I took the reference from there.pull/69/head
rodzic
3b793a706b
commit
5315e2d865
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue