software/erp5/test: fix ResourceWarning on python3

 - use the requests.Session in a context manager so that resources are
properly closed.
 - close the stdout of caucase process we want to keep silent

See merge request !1075
4 jobs for erp5-openidconnect
in 0 seconds, using 0 compute credits, and was queued for 0 seconds