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

This commit is contained in:
Joao Pedro De Almeida Pereira
2017-06-13 10:27:09 +01:00
committed by Dave Page
parent 3a5fda44e4
commit a9ce9c9717

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'],