'BlockingConnection: connection context manager closes connection and passes system exception'

def test(self):

    with self.assertRaises(SystemExit):
        with self._connect() as connection:
            self.assertTrue(connection.is_open)
            raise SystemExit()
    self.assertTrue(connection.is_closed)
