Changeset 731


Ignore:
Timestamp:
Jan 12, 2016, 9:00:04 PM (4 years ago)
Author:
cito
Message:

Back ported some minor fixes from trunk to 4.x

Location:
branches/4.x/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/tests/test_classic.py

    r690 r731  
    182182
    183183        r = db.get('_test_schema', 1234)
     184        self.assertIn('dvar', r)
    184185        db.update('_test_schema', _test=1234, dvar=456)
    185186        r = db.get('_test_schema', 1234)
  • branches/4.x/tests/test_classic_connection.py

    r698 r731  
    999999        en_money = '$34.25', '$ 34.25', '34.25$', '34.25 $', '34.25 Dollar'
    10001000        de_locales = 'de', 'de_DE', 'de_DE.utf8', 'de_DE.UTF-8'
    1001         de_money = ('34,25€', '34,25 €', '€34,25' '€ 34,25',
     1001        de_money = ('34,25€', '34,25 €', '€34,25', '€ 34,25',
    10021002            'EUR34,25', 'EUR 34,25', '34,25 EUR', '34,25 Euro', '34,25 DM')
    10031003        # first try with English localization (using the point)
  • branches/4.x/tests/test_classic_dbwrapper.py

    r709 r731  
    791791                expect = data.copy()
    792792                expect.update(change)
    793                 if data.get('m') and server_version < 910000:
     793                if data.get('m') and server_version < 90100:
    794794                    # PostgreSQL < 9.1 cannot directly convert numbers to money
    795795                    data['m'] = "'%s'::money" % data['m']
Note: See TracChangeset for help on using the changeset viewer.