diff options
Diffstat (limited to '')
-rw-r--r-- | test/unit/applications/websockets.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/applications/websockets.py b/test/unit/applications/websockets.py index 47eebd9c..3553af6e 100644 --- a/test/unit/applications/websockets.py +++ b/test/unit/applications/websockets.py @@ -173,7 +173,10 @@ class TestApplicationWebsocket(TestApplicationProto): frame = self.frame_to_send(*args, **kwargs) if chopsize is None: - sock.sendall(frame) + try: + sock.sendall(frame) + except BrokenPipeError: + pass else: pos = 0 |