Changeset 959


Ignore:
Timestamp:
Jan 4, 2019, 12:20:28 PM (8 months ago)
Author:
cito
Message:

Fix an issue with the parameter() method test

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0.x/tests/test_classic_connection.py

    r928 r959  
    275275        r = parameter('this server setting does not exist')
    276276        self.assertIsNone(r)
    277         s = query('show server_version').getresult()[0][0].upper()
     277        s = query('show server_version').getresult()[0][0]
    278278        self.assertIsNotNone(s)
    279279        r = parameter('server_version')
    280280        self.assertEqual(r, s)
    281         s = query('show server_encoding').getresult()[0][0].upper()
     281        s = query('show server_encoding').getresult()[0][0]
    282282        self.assertIsNotNone(s)
    283283        r = parameter('server_encoding')
    284284        self.assertEqual(r, s)
    285         s = query('show client_encoding').getresult()[0][0].upper()
     285        s = query('show client_encoding').getresult()[0][0]
    286286        self.assertIsNotNone(s)
    287287        r = parameter('client_encoding')
    288288        self.assertEqual(r, s)
    289         s = query('show server_encoding').getresult()[0][0].upper()
     289        s = query('show server_encoding').getresult()[0][0]
    290290        self.assertIsNotNone(s)
    291291        r = parameter('server_encoding')
  • trunk/tests/test_classic_connection.py

    r958 r959  
    276276        r = parameter('this server setting does not exist')
    277277        self.assertIsNone(r)
    278         s = query('show server_version').getresult()[0][0].upper()
     278        s = query('show server_version').getresult()[0][0]
    279279        self.assertIsNotNone(s)
    280280        r = parameter('server_version')
    281281        self.assertEqual(r, s)
    282         s = query('show server_encoding').getresult()[0][0].upper()
     282        s = query('show server_encoding').getresult()[0][0]
    283283        self.assertIsNotNone(s)
    284284        r = parameter('server_encoding')
    285285        self.assertEqual(r, s)
    286         s = query('show client_encoding').getresult()[0][0].upper()
     286        s = query('show client_encoding').getresult()[0][0]
    287287        self.assertIsNotNone(s)
    288288        r = parameter('client_encoding')
    289289        self.assertEqual(r, s)
    290         s = query('show server_encoding').getresult()[0][0].upper()
     290        s = query('show server_encoding').getresult()[0][0]
    291291        self.assertIsNotNone(s)
    292292        r = parameter('server_encoding')
Note: See TracChangeset for help on using the changeset viewer.