psycopg2/tests
Daniele Varrazzo 74e6efd717 Raise TypeError instead of InterfaceError on bad params on connect()
TypeError is the standard Python error raised in this case:

    $ python -c "(lambda a: None)(b=10)"
    TypeError: <lambda>() got an unexpected keyword argument 'b'

We only used to raise InterfaceError when connect was used without
any parameter at all, so it's hard to think a program depending on
that design. Furthermore the function has always raised (and still
does) OperationalError too, if the bad argument is detected by the
libpq, and that cannot be changed because we can't tell the
difference from a normal connection error.
2012-09-26 11:55:21 +01:00
..
__init__.py Tests in order 2011-11-18 00:10:53 +00:00
dbapi20_tpc.py hook up two phase commit tests. 2010-11-05 09:34:47 +00:00
dbapi20.py Dropped test about close() on closed connection raising an exception 2012-03-04 05:10:06 +00:00
test_async.py Force GC during weakref tests 2011-12-26 22:35:33 +01:00
test_bug_gc.py All unit test modules have a test_ prefix 2011-10-19 02:20:43 +01:00
test_bugX000.py All unit test modules have a test_ prefix 2011-10-19 02:20:43 +01:00
test_cancel.py Cleanup of skipping of testing methods on certain Py/PG versions 2011-02-15 17:11:07 +00:00
test_connection.py Fixed tpc_recover() with RealDictStuff 2012-08-14 23:29:19 +01:00
test_copy.py Allocate dynamically memory for the list of columns in COPY 2011-09-12 02:21:59 +01:00
test_cursor.py Name can be passed as None to cursor() 2012-04-11 17:32:10 +01:00
test_dates.py Cache FixedOffsetTimezone instances 2012-01-30 13:27:40 +00:00
test_extras_dictcursor.py Added tests to verify cursor() arguments propagation 2012-04-11 18:00:18 +01:00
test_green.py Pulled down changes from dvarrazzo branch on gh 2011-02-10 15:59:31 -07:00
test_lobject.py Dropped duplicate import 2012-01-14 17:28:37 +00:00
test_module.py Raise TypeError instead of InterfaceError on bad params on connect() 2012-09-26 11:55:21 +01:00
test_notify.py Tweaks to test timing to avoid errors on test VMs 2011-02-20 19:33:22 +00:00
test_psycopg2_dbapi20.py Pulled down changes from dvarrazzo branch on gh 2011-02-10 15:59:31 -07:00
test_quote.py Update all links to PostgreSQL docs to the current version. 2012-02-28 18:28:07 +02:00
test_transaction.py Cleanup of skipping of testing methods on certain Py/PG versions 2011-02-15 17:11:07 +00:00
test_types_basic.py Fixed infinite loop when parsing '{' as array 2012-09-20 03:19:24 +01:00
test_types_extras.py Fixed tests to run with PG 8.3 2012-09-04 21:23:19 +01:00
testconfig.py Fixed linefeeds on merged files to unix linefeeds 2011-02-10 17:16:10 -07:00
testutils.py Parse bytea output format ourselves instead of using the libpq 2011-03-26 12:59:14 +00:00