commit aca863907e1c5bdbd108f4be17583083d2779e0a from: Sergey Bronnikov date: Mon Dec 18 18:56:23 2023 UTC 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 commit - 7a91789030cb2a25c5d5d5f1ca08e8c4fdf641fa commit + aca863907e1c5bdbd108f4be17583083d2779e0a blob - 2c5c35321400333eb777b1c51c8fde0ca36eb4e2 blob + 48de8c9d3bf9b0260886a852958d80913d770a58 --- test/app-luatest/httpd.py +++ test/app-luatest/httpd.py @@ -4,7 +4,10 @@ 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" headers = [("Content-Type", "application/json")]