mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 02:43:43 +03:00
a61f30b2d2
If the CREATE TABLE statement fails, the setup would fail without committing or rolling back the active transaction, so the transaction would hold onto its resources indefinitely. Normally, the transaction would be closed when the connection is closed in the `tearDown` function. However, `tearDown` is not called if there was an error during `setUp` ([as specified by the `unittest` docs](https://docs.python.org/3/library/unittest.html#unittest.TestCase.tearDown)), so we need to handle this case specially. |
||
---|---|---|
.. | ||
__init__.py | ||
dbapi20_tpc.py | ||
dbapi20.py | ||
test_async_keyword.py | ||
test_async.py | ||
test_bug_gc.py | ||
test_bugX000.py | ||
test_cancel.py | ||
test_connection.py | ||
test_copy.py | ||
test_cursor.py | ||
test_dates.py | ||
test_errcodes.py | ||
test_errors.py | ||
test_extras_dictcursor.py | ||
test_fast_executemany.py | ||
test_green.py | ||
test_ipaddress.py | ||
test_lobject.py | ||
test_module.py | ||
test_notify.py | ||
test_psycopg2_dbapi20.py | ||
test_quote.py | ||
test_replication.py | ||
test_sql.py | ||
test_transaction.py | ||
test_types_basic.py | ||
test_types_extras.py | ||
test_with.py | ||
testconfig.py | ||
testutils.py |