Changeset 545 for branches/4.x


Ignore:
Timestamp:
Nov 18, 2015, 2:15:34 PM (4 years ago)
Author:
cito
Message:

Fix test code for checking the port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/module/TEST_PyGreSQL_classic_connection.py

    r544 r545  
    107107
    108108    def testAttributePort(self):
     109        def_port = 5432
    109110        self.assertIsInstance(self.connection.port, int)
    110         self.assertEqual(self.connection.port, dbport or dbport)
     111        self.assertEqual(self.connection.port, dbport or def_port)
    111112
    112113    def testAttributeProtocolVersion(self):
Note: See TracChangeset for help on using the changeset viewer.