Skip to content
Snippets Groups Projects
Commit 8912df25 authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Igor Munkin
Browse files

tests: suppress message 'Broken pipe exception handling'

Message below is printed every time on shutdown `httpd.py` when
`test/app-luatest/http_client_test.lua` is running by luatest without
capturing stdout:

```
BrokenPipeError: [Errno 32] Broken pipe exception handling
```

The patch suppress this exception by adding a handler for a signal
`SIGPIPE`.

NO_CHANGELOG=testing
NO_DOC=testing
NO_TEST=testing
parent 2aaf0115
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,9 @@ import sys
import tempfile
from gevent.pywsgi import WSGIServer
from gevent import spawn, sleep, socket
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
def absent():
code = "500 Server Error"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment