From cfb2eee0f3a11f79ca216ab805338868b503aa16 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 2 Mar 2015 19:16:37 -0500 Subject: - add a skip for JSONB on pg8000 if we are on 1.10.1 or earlier --- test/dialect/postgresql/test_types.py | 1 + test/requirements.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/test/dialect/postgresql/test_types.py b/test/dialect/postgresql/test_types.py index 36f4fdc3f..b7568ca84 100644 --- a/test/dialect/postgresql/test_types.py +++ b/test/dialect/postgresql/test_types.py @@ -2304,6 +2304,7 @@ class JSONBTest(JSONTest): class JSONBRoundTripTest(JSONRoundTripTest): __only_on__ = ('postgresql >= 9.4',) + __requires__ = ('postgresql_jsonb', ) test_type = JSONB diff --git a/test/requirements.py b/test/requirements.py index 4d5869226..67bdfb8a3 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -752,6 +752,14 @@ class DefaultRequirements(SuiteRequirements): "postgres_test_db_link option not specified in config" ) + @property + def postgresql_jsonb(self): + return skip_if( + lambda config: + config.db.dialect.driver == "pg8000" and + config.db.dialect._dbapi_version <= (1, 10, 1) + ) + @property def percent_schema_names(self): return skip_if( -- cgit v1.2.1