Methodtest_a_cancelled_statement_drops_the_name_and_drains_its_sessionCancellation is not an Exception, so the arm above it never sees it. Seen to conclude, the batch is done with the session, so the transaction
src/redshift-mcp-server/tests/test_redshift.py:2902