psycopg2/tests
Greg Ward 12317557da Always raise OperationalError when connection was closed externally.
From the DB-API (https://www.python.org/dev/peps/pep-0249/):

  OperationalError

  Exception raised for errors that are related to the database's
  operation and not necessarily under the control of the programmer,
  e.g. an unexpected disconnect occurs, [...]

Additionally, psycopg2 was inconsistent, at least in the async case:
depending on how the "connection closed" error was reported from the
kernel to libpq, it would sometimes raise OperationalError and
sometimes DatabaseError. Now it always raises OperationalError.
2017-03-14 12:14:00 +00:00
..
__init__.py Merge branch 'master' into sql-compose 2017-02-03 04:56:02 +00:00
dbapi20_tpc.py hook up two phase commit tests. 2010-11-05 09:34:47 +00:00
dbapi20.py Fix several typos 2015-05-03 10:30:21 +01:00
test_async_keyword.py Added readonly and deferrable attributes 2017-02-16 12:46:35 +00:00
test_async.py Added readonly and deferrable attributes 2017-02-16 12:46:35 +00:00
test_bug_gc.py Python source cleanup using flake8 2016-10-11 00:11:55 +01:00
test_bugX000.py Python source cleanup using flake8 2016-10-11 00:11:55 +01:00
test_cancel.py Work around a race condition in async cancel test 2017-02-06 21:40:05 +00:00
test_connection.py Ignore None arguments passed to make_dsn() 2017-03-01 20:12:13 +00:00
test_copy.py Further skipping of slow tests 2017-02-02 03:02:29 +00:00
test_cursor.py Always raise OperationalError when connection was closed externally. 2017-03-14 12:14:00 +00:00
test_dates.py Skip test on PG version with bad interval rounding 2017-03-01 02:14:35 +00:00
test_errcodes.py Merge branch 'async-keyword' 2017-02-03 04:45:17 +00:00
test_extras_dictcursor.py Python source cleanup using flake8 2016-10-11 00:11:55 +01:00
test_fast_executemany.py Skipped a couple of tests failing on old dbs 2017-02-06 21:40:05 +00:00
test_green.py Allow skipping the slow test 2017-02-02 01:53:50 +00:00
test_ipaddress.py Skip tests with server not supporting NULL in array 2017-02-06 21:40:05 +00:00
test_lobject.py Further skipping of slow tests 2017-02-02 03:02:29 +00:00
test_module.py assertDsnEqual moved as TestSuite method 2017-02-06 21:40:05 +00:00
test_notify.py Further skipping of slow tests 2017-02-02 03:02:29 +00:00
test_psycopg2_dbapi20.py Merge branch 'master' into named-callproc 2016-12-26 01:49:42 +01:00
test_quote.py Skipped a couple of tests failing on old dbs 2017-02-06 21:40:05 +00:00
test_replication.py Added async_ as an alias for async 2017-02-03 04:43:49 +00:00
test_sql.py Deal consistently with E'' quotes in tests 2017-02-06 21:40:05 +00:00
test_transaction.py Allow skipping the slow test 2017-02-02 01:53:50 +00:00
test_types_basic.py Don't convert '{}'::unknown into an empty list 2017-02-08 08:43:53 +00:00
test_types_extras.py Deal consistently with E'' quotes in tests 2017-02-06 21:40:05 +00:00
test_with.py Python source cleanup using flake8 2016-10-11 00:11:55 +01:00
testconfig.py Test moved to the right module, cleanup, but same problem 2016-07-01 18:01:16 +01:00
testutils.py Skip the tests according to the earliest of libpq built/linked. 2017-03-02 19:32:44 +00:00