summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-02 19:16:37 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-02 19:16:37 -0500
commitcfb2eee0f3a11f79ca216ab805338868b503aa16 (patch)
treefced8e84e3c2154bb77b124c9509604849e1f061
parentd140983148f1acbee7606a037bdf0a9f144cd173 (diff)
downloadsqlalchemy-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.py1
-rw-r--r--test/requirements.py8
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(
[