Changeset 665 for branches/4.x


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
  • branches/4.x/module/tests/test_dbapi20.py

    r650 r665  
    3232    driver = pgdb
    3333    connect_args = ()
    34     connect_kw_args = {'dsn': dbhost + ':' + dbname}
     34    connect_kw_args = {'database': dbname,
     35        'host': '%s:%d' % (dbhost or '', dbport or -1)}
    3536
    3637    lower_func = 'lower'  # For stored procedure test
Note: See TracChangeset for help on using the changeset viewer.