On Wed, 18 Nov 2015 19:44:33 +0100
Christoph Zwerschke <[email protected]> wrote:
> But you can also set them to None to have the tests use the defaults
> baked in PyGreSQL, like here:
You're right. I guess we also need to test the port against -1. And
that alerted me to this strange bit of code:
def testAttributePort(self):
self.assertIsInstance(self.connection.port, int)
self.assertEqual(self.connection.port, dbport or dbport)
^^^^^^^^^^^^^^^^
--
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