Refactor error log exit check in test_conn
Refactor error log exit check in test_conn

This change allows pytest to show the local variables' values in
the error summary.

Ref: https://github.com/cherrypy/cheroot/pull/316#issuecomment-678831092

cherrypy/cheroot