From: Mike Bayer Date: Tue, 3 Mar 2015 00:16:37 +0000 (-0500) Subject: - add a skip for JSONB on pg8000 if we are on 1.10.1 or earlier X-Git-Tag: rel_1_0_0b1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb2eee0f3a11f79ca216ab805338868b503aa16;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - add a skip for JSONB on pg8000 if we are on 1.10.1 or earlier --- diff --git a/test/dialect/postgresql/test_types.py b/test/dialect/postgresql/test_types.py index 36f4fdc3fe..b7568ca841 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 4d5869226f..67bdfb8a34 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(