On Wed, 18 Nov 2015 18:15:48 -0000
[email protected] wrote:
> -        self.assertEqual(self.connection.host, def_host)
> +        self.assertIsInstance(self.connection.host, str)
> +        self.assertEqual(self.connection.host, dbhost or def_host)

You don't need to test this way.  The variables dbhost and dbport always
exist. If LOCAL_PyGreSQL.py exists it may change them but they exist
and are set to the defaults if not.

-- 
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org IM:[email protected]
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to