On Wed, 18 Nov 2015 17:56:25 -0000 [email protected] wrote: > Author: cito > Date: Wed Nov 18 12:56:24 2015 > New Revision: 542 > > Log: > Improve type checks in the tests for classic pg > > Modified: > branches/4.x/module/TEST_PyGreSQL_classic_connection.py > branches/4.x/module/TEST_PyGreSQL_classic_dbwrapper.py > > Modified: branches/4.x/module/TEST_PyGreSQL_classic_connection.py > ============================================================================== > --- branches/4.x/module/TEST_PyGreSQL_classic_connection.py > Wed Nov 18 12:11:37 2015 (r541) +++ > branches/4.x/module/TEST_PyGreSQL_classic_connection.py Wed > Nov 18 12:56:24 2015 (r542) @@ -106,30 +106,34 @@ > def testAttributePort(self): > def_port = 5432 > + self.assertIsInstance(self.connection.port, int) > self.assertEqual(self.connection.port, def_port)
This should be checked against dbport since PG may not be running on the standard port. -- 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
