Changeset 904 for trunk/tests


Ignore:
Timestamp:
Jan 6, 2017, 11:44:08 AM (3 years ago)
Author:
cito
Message:

Make test more robust with Postgres < 9.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_classic_dbwrapper.py

    r900 r904  
    17341734        try:
    17351735            insert('test_view', r)
    1736         except pg.NotSupportedError as error:
     1736        except (pg.OperationalError, pg.NotSupportedError) as error:
    17371737            if self.db.server_version < 90300:
    17381738                # must setup rules in older PostgreSQL versions
Note: See TracChangeset for help on using the changeset viewer.