mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-04 02:50:37 +02:00
test: switch a bool([...]) to any()
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/317>
This commit is contained in:
parent
c169ac63b8
commit
7619bfa9ad
1 changed files with 1 additions and 3 deletions
|
|
@ -528,9 +528,7 @@ class TestEiProtocol:
|
|||
except (ConnectionResetError, BrokenPipeError):
|
||||
pass
|
||||
|
||||
ei.wait_for(
|
||||
lambda: bool([c for c in connection.calllog if c.name == "Disconnected"])
|
||||
)
|
||||
ei.wait_for(lambda: any(c.name == "Disconnect" for c in connection.calllog))
|
||||
|
||||
for call in connection.calllog:
|
||||
assert call.name != "Disconnected", "No disconnect event allowed here"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue