Skip a test that uses the COLLATE option on PG versions below 9.1 (e.g. Greenplum).

REL-1_X
Joao Pedro De Almeida Pereira 2017-06-13 10:27:09 +01:00 committed by Dave Page
parent 3a5fda44e4
commit a9ce9c9717
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ CREATE TABLE public.defaults
"""
def before(self):
with test_utils.Database(self.server) as (connection, _):
if connection.server_version < 90100:
self.skipTest("COLLATE is not present in PG versions below v9.1")
connection = test_utils.get_db_connection(self.server['db'],
self.server['username'],
self.server['db_password'],