psycopg2/tests
Daniele Varrazzo 1b48033345 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:57:34 +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 09:59:40 +01:00
test_async.py Added select.select timeout on AsyncTests.wait 2014-05-19 12:15:52 +01: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-31 03:06:33 +01:00
test_copy.py Fixed segfault if COPY statements are executed 2014-06-06 21:42:21 +02:00
test_cursor.py Added test to verify withhold cursors work in autocommit 2014-08-21 05:35:11 +01:00
test_dates.py Added regression test for infinity parsing in dates 2013-05-11 02:19:59 +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 Check the connection is really bad on exception before closing it 2014-04-05 16:03:06 +01:00
test_module.py Added test to verify _psycopg can be imported 2014-08-28 02:17:49 +01:00
test_notify.py Testing external script independent from psycopg implementation 2013-04-19 23:01:28 +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-28 02:17:54 +01:00
test_with.py Don't try to close the server cursor in error state 2014-09-16 06:57:34 +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-19 12:15:53 +01:00