Author: darcy
Date: Wed Dec 23 10:14:10 2015
New Revision: 666
Log:
When creating a missing database use the same parameters as the test run.
Modified:
branches/4.x/module/tests/test_dbapi20.py
Modified: branches/4.x/module/tests/test_dbapi20.py
==============================================================================
--- branches/4.x/module/tests/test_dbapi20.py Wed Dec 23 09:55:54 2015
(r665)
+++ branches/4.x/module/tests/test_dbapi20.py Wed Dec 23 10:14:10 2015
(r666)
@@ -44,7 +44,7 @@
con.close()
except pgdb.Error:
import pg
- pg.DB().query('create database ' + dbname)
+ pg.DB('postgres',dbhost,dbport).query('create database ' + dbname)
def tearDown(self):
dbapi20.DatabaseAPI20Test.tearDown(self)
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql