Changeset 665 for trunk


Ignore:
Timestamp:
Dec 23, 2015, 9:55:54 AM (4 years ago)
Author:
cito
Message:

Make database port configurable in test_dbapi20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/tests/test_dbapi20.py

    r649 r665  
    3939    driver = pgdb
    4040    connect_args = ()
    41     connect_kw_args = {'dsn': (dbhost or '') + ':' + dbname}
     41    connect_kw_args = {'database': dbname,
     42        'host': '%s:%d' % (dbhost or '', dbport or -1)}
    4243
    4344    lower_func = 'lower'  # For stored procedure test
Note: See TracChangeset for help on using the changeset viewer.