Changeset 787 for trunk/tests


Ignore:
Timestamp:
Jan 26, 2016, 1:59:18 PM (4 years ago)
Author:
cito
Message:

Make the type cache of pgdb available to users

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_dbapi20.py

    r784 r787  
    294294        con = self._connect()
    295295        cur = con.cursor()
    296         type_info = cur._type_cache['numeric']
     296        type_info = cur.type_cache['numeric']
    297297        self.assertEqual(type_info.oid, 1700)
    298298        self.assertEqual(type_info.name, 'numeric')
     
    300300        self.assertEqual(type_info.category, 'N')  # numeric
    301301        self.assertEqual(type_info.delim, ',')
    302         self.assertIs(cur._type_cache[1700], type_info)
     302        self.assertIs(cur.type_cache[1700], type_info)
    303303
    304304    def test_cursor_iteration(self):
Note: See TracChangeset for help on using the changeset viewer.