Changeset 927 for trunk


Ignore:
Timestamp:
Jan 22, 2018, 3:32:43 AM (21 months ago)
Author:
cito
Message:

Fix test issue with Pg 9.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_classic_dbwrapper.py

    r904 r927  
    245245    @unittest.skipIf(do_not_ask_for_host, do_not_ask_for_host_reason)
    246246    def testAttributeHost(self):
    247         def_host = 'localhost'
    248         host = self.db.host
    249         self.assertIsInstance(host, str)
    250         self.assertEqual(host, dbhost or def_host)
    251         self.assertEqual(host, self.db.db.host)
     247        if dbhost and not dbhost.startswith('/'):
     248            host = dbhost
     249        else:
     250            host = 'localhost'
     251        self.assertIsInstance(self.db.host, str)
     252        self.assertEqual(self.db.host, host)
     253        self.assertEqual(self.db.db.host, host)
    252254
    253255    def testAttributeOptions(self):
Note: See TracChangeset for help on using the changeset viewer.