diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-02 19:16:37 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-02 19:16:37 -0500 |
commit | cfb2eee0f3a11f79ca216ab805338868b503aa16 (patch) | |
tree | fced8e84e3c2154bb77b124c9509604849e1f061 | |
parent | d140983148f1acbee7606a037bdf0a9f144cd173 (diff) | |
download | sqlalchemy-cfb2eee0f3a11f79ca216ab805338868b503aa16.tar.gz |
- add a skip for JSONB on pg8000 if we are on 1.10.1 or earlier
-rw-r--r-- | test/dialect/postgresql/test_types.py | 1 | ||||
-rw-r--r-- | test/requirements.py | 8 |
2 files changed, 9 insertions, 0 deletions
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 @@ -753,6 +753,14 @@ class DefaultRequirements(SuiteRequirements): ) @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( [ |