From: Mike Bayer Date: Wed, 25 Apr 2012 00:44:21 +0000 (-0400) Subject: adjust some test exclusions X-Git-Tag: rel_0_8_0b1~444 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=197e5ea94197fbe8377c3987781e8e1fa0d818ab;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git adjust some test exclusions --- diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 94eb2fe6ca..5729bf3541 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -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 diff --git a/test/ext/test_serializer.py b/test/ext/test_serializer.py index 87b7a2f67d..ee9ce6a976 100644 --- a/test/ext/test_serializer.py +++ b/test/ext/test_serializer.py @@ -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)