]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
adjust some test exclusions
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Apr 2012 00:44:21 +0000 (20:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Apr 2012 00:44:21 +0000 (20:44 -0400)
test/dialect/test_postgresql.py
test/ext/test_serializer.py

index 94eb2fe6ca4c28aa1ea1a583db5340300e6b3b35..5729bf35416341dbf80cd1e2765fd77ad9694e9c 100644 (file)
@@ -1916,6 +1916,8 @@ class ArrayTest(fixtures.TestBase, AssertsExecutionResults):
 
     __only_on__ = 'postgresql'
 
+    __unsupported_on__ = 'postgresql+pg8000', 'postgresql+zxjdbc'
+
     @classmethod
     def setup_class(cls):
         global metadata, arrtable
@@ -1963,8 +1965,6 @@ class ArrayTest(fixtures.TestBase, AssertsExecutionResults):
         assert isinstance(tbl.c.intarr.type.item_type, Integer)
         assert isinstance(tbl.c.strarr.type.item_type, String)
 
-    @testing.fails_on('postgresql+zxjdbc',
-                      'zxjdbc has no support for PG arrays')
     def test_insert_array(self):
         arrtable.insert().execute(intarr=[1, 2, 3], strarr=[u'abc',
                                   u'def'])
@@ -1973,10 +1973,6 @@ class ArrayTest(fixtures.TestBase, AssertsExecutionResults):
         eq_(results[0]['intarr'], [1, 2, 3])
         eq_(results[0]['strarr'], ['abc', 'def'])
 
-    @testing.fails_on('postgresql+pg8000',
-                      'pg8000 has poor support for PG arrays')
-    @testing.fails_on('postgresql+zxjdbc',
-                      'zxjdbc has no support for PG arrays')
     def test_array_where(self):
         arrtable.insert().execute(intarr=[1, 2, 3], strarr=[u'abc',
                                   u'def'])
@@ -1986,12 +1982,6 @@ class ArrayTest(fixtures.TestBase, AssertsExecutionResults):
         eq_(len(results), 1)
         eq_(results[0]['intarr'], [1, 2, 3])
 
-    @testing.fails_on('postgresql+pg8000',
-                      'pg8000 has poor support for PG arrays')
-    @testing.fails_on('postgresql+pypostgresql',
-                      'pypostgresql fails in coercing an array')
-    @testing.fails_on('postgresql+zxjdbc',
-                      'zxjdbc has no support for PG arrays')
     def test_array_concat(self):
         arrtable.insert().execute(intarr=[1, 2, 3], strarr=[u'abc',
                                   u'def'])
@@ -2000,10 +1990,6 @@ class ArrayTest(fixtures.TestBase, AssertsExecutionResults):
         eq_(len(results), 1)
         eq_(results[0][0], [ 1, 2, 3, 4, 5, 6, ])
 
-    @testing.fails_on('postgresql+pg8000',
-                      'pg8000 has poor support for PG arrays')
-    @testing.fails_on('postgresql+zxjdbc',
-                      'zxjdbc has no support for PG arrays')
     def test_array_subtype_resultprocessor(self):
         arrtable.insert().execute(intarr=[4, 5, 6],
                                   strarr=[[u'm\xe4\xe4'], [u'm\xf6\xf6'
@@ -2016,9 +2002,6 @@ class ArrayTest(fixtures.TestBase, AssertsExecutionResults):
         eq_(results[0]['strarr'], [u'm\xe4\xe4', u'm\xf6\xf6'])
         eq_(results[1]['strarr'], [[u'm\xe4\xe4'], [u'm\xf6\xf6']])
 
-    @testing.fails_on('+zxjdbc',
-                      "Can't infer the SQL type to use for an instance "
-                      "of org.python.core.PyList.")
     @testing.provide_metadata
     def test_tuple_flag(self):
         metadata = self.metadata
index 87b7a2f67d51c4e1e6d181d30be129dfd08507b9..ee9ce6a97667cf5162ba435ec5c8313455e8cf28 100644 (file)
@@ -140,7 +140,8 @@ class SerializeTest(fixtures.MappedTest):
         eq_(list(q2.all()), [(u7, u8), (u7, u9), (u7, u10), (u8, u9),
             (u8, u10)])
 
-    @testing.fails_if(lambda: util.pypy, "problem in pickle")
+    @testing.skip_if(lambda: util.pypy, "pickle sometimes has "
+                        "problems here, sometimes not")
     def test_any(self):
         r = User.addresses.any(Address.email == 'x')
         ser = serializer.dumps(r, -1)