mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-03 13:50:14 +01:00
test: ignore a failure to send a pong
Our automatic pong handler unconditionally sends a Pong back to the EIS implementation. For some tests and depending on timing we may have been disconnected already, resulting in a BrokenPipeError that fails us the test. Ignore that error. Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/317>
This commit is contained in:
parent
96f20ae333
commit
60bc264e75
1 changed files with 4 additions and 1 deletions
|
|
@ -287,7 +287,10 @@ class Ei:
|
|||
# Automatic ping/pong handler
|
||||
def ping(conn, id, version, new_objects={}):
|
||||
pingpong = new_objects["ping"]
|
||||
ei.send(pingpong.Done(0))
|
||||
try:
|
||||
ei.send(pingpong.Done(0))
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
|
||||
ei.connection.connect("Ping", ping)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue