]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- add a skip for JSONB on pg8000 if we are on 1.10.1 or earlier
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Mar 2015 00:16:37 +0000 (19:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Mar 2015 00:16:37 +0000 (19:16 -0500)
test/dialect/postgresql/test_types.py
test/requirements.py

index 36f4fdc3fef9379aa3d8d103c7eb24360486fa2c..b7568ca841ebf65962fa4592870074761a79ea42 100644 (file)
@@ -2304,6 +2304,7 @@ class JSONBTest(JSONTest):
 
 class JSONBRoundTripTest(JSONRoundTripTest):
     __only_on__ = ('postgresql >= 9.4',)
+    __requires__ = ('postgresql_jsonb', )
 
     test_type = JSONB
 
index 4d5869226ff00889886091f2a52c6bfde228889a..67bdfb8a34eec43357534daece5b07f2a6daf165 100644 (file)
@@ -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(