]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: add test to verify the behaviour of failed commits
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 9 May 2022 13:46:30 +0000 (15:46 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 9 May 2022 13:46:30 +0000 (15:46 +0200)
commit04fd1d3fcf8dc8f77218ff45d1c03aa98556678a
tree38fc9a8ab524a88296582e19d11deb206099e3ff
parent7a4061439d5987e1162e1f42110427e9902adc60
test: add test to verify the behaviour of failed commits

The exception is raised where expected; the transaction is left in IDLE
state. This is unlike what happens in pipeline mode.
tests/test_connection.py
tests/test_connection_async.py