Author: cito
Date: Wed Dec 23 09:55:54 2015
New Revision: 665

Log:
Make database port configurable in test_dbapi20

Modified:
   branches/4.x/module/tests/test_dbapi20.py
   trunk/module/tests/test_dbapi20.py

Modified: branches/4.x/module/tests/test_dbapi20.py
==============================================================================
--- branches/4.x/module/tests/test_dbapi20.py   Thu Dec 10 07:59:20 2015        
(r664)
+++ branches/4.x/module/tests/test_dbapi20.py   Wed Dec 23 09:55:54 2015        
(r665)
@@ -31,7 +31,8 @@
 
     driver = pgdb
     connect_args = ()
-    connect_kw_args = {'dsn': dbhost + ':' + dbname}
+    connect_kw_args = {'database': dbname,
+        'host': '%s:%d' % (dbhost or '', dbport or -1)}
 
     lower_func = 'lower'  # For stored procedure test
 

Modified: trunk/module/tests/test_dbapi20.py
==============================================================================
--- trunk/module/tests/test_dbapi20.py  Thu Dec 10 07:59:20 2015        (r664)
+++ trunk/module/tests/test_dbapi20.py  Wed Dec 23 09:55:54 2015        (r665)
@@ -38,7 +38,8 @@
 
     driver = pgdb
     connect_args = ()
-    connect_kw_args = {'dsn': (dbhost or '') + ':' + dbname}
+    connect_kw_args = {'database': dbname,
+        'host': '%s:%d' % (dbhost or '', dbport or -1)}
 
     lower_func = 'lower'  # For stored procedure test
 
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to