Changeset 923 for trunk/tests


Ignore:
Timestamp:
Jul 28, 2017, 7:31:07 AM (2 years ago)
Author:
cito
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_classic_connection.py

    r901 r923  
    140140    @unittest.skipIf(do_not_ask_for_host, do_not_ask_for_host_reason)
    141141    def testAttributeHost(self):
    142         def_host = 'localhost'
     142        if dbhost and not dbhost.startswith('/'):
     143            host = dbhost
     144        else:
     145            host = 'localhost'
    143146        self.assertIsInstance(self.connection.host, str)
    144         self.assertEqual(self.connection.host, dbhost or def_host)
     147        self.assertEqual(self.connection.host, host)
    145148
    146149    def testAttributeOptions(self):
Note: See TracChangeset for help on using the changeset viewer.