psycopg2/tests
Daniele Varrazzo e3c6b46416 Don't try to close the server cursor in error state
`close()` is implicitly called by `__exit__()`, so an exit on error
would run a query on a inerr connection, causing another exception
hiding the original one. The fix is on `close()`, not on `__exit__()`,
because the semantic of the latter is simply to call the former.

Closes #262.
2014-09-16 06:51:46 +01:00
..
__init__.py Added support for with statement for connection and cursor 2012-12-03 02:50:24 +00:00
dbapi20_tpc.py hook up two phase commit tests. 2010-11-05 09:34:47 +00:00
dbapi20.py Fix multiple misspellings 2013-04-26 10:32:21 +01:00
test_async.py Added select.select timeout on AsyncTests.wait 2014-05-18 20:58:23 -06:00
test_bug_gc.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_bugX000.py All unit test modules have a test_ prefix 2011-10-19 02:20:43 +01:00
test_cancel.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_connection.py Fixed excessively strict notices test 2014-08-30 14:30:20 +01:00
test_copy.py Fixed segfault if COPY statements are executed 2014-06-06 21:32:08 +02:00
test_cursor.py Added test to verify withhold cursors work in autocommit 2014-08-21 05:14:20 +01:00
test_dates.py Added regression test for infinity parsing in dates 2013-05-11 02:24:25 +01:00
test_extras_dictcursor.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_green.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_lobject.py Merge branch 'connection-closed' into maint_2_5 2014-04-05 16:10:32 +01:00
test_module.py Added test to verify _psycopg can be imported 2014-08-26 03:55:47 +01:00
test_notify.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_psycopg2_dbapi20.py Pulled down changes from dvarrazzo branch on gh 2011-02-10 15:59:31 -07:00
test_quote.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_transaction.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_types_basic.py Testing boilerplate unified in a single base class 2013-04-07 00:23:30 +01:00
test_types_extras.py Clear adapters in test to maintain reference count 2014-08-26 03:56:09 +01:00
test_with.py Don't try to close the server cursor in error state 2014-09-16 06:51:46 +01:00
testconfig.py Fixed linefeeds on merged files to unix linefeeds 2011-02-10 17:16:10 -07:00
testutils.py Skip test_cleanup_on_badconn_close on Windows 2014-05-18 20:58:50 -06:00