From b653fedca5f0fc384c990e93d82c0780c9e76f2c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 18 Aug 2015 13:02:58 -0400 Subject: - fix the postgresql_jsonb requirement to include the 9.4 requirement - new test for json col['x']['y']['z'] seems to fail pre PG 9.4, fails on comparisons for non-compatible data instead of not matching - no need to call SpecPredicate(db) directly in exclusion functions, by using Predicate.as_predicate() the spec strings can have version comparisons --- test/dialect/mssql/test_types.py | 4 +--- test/dialect/postgresql/test_types.py | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/dialect') diff --git a/test/dialect/mssql/test_types.py b/test/dialect/mssql/test_types.py index 17ceb6b61..e782bd5e5 100644 --- a/test/dialect/mssql/test_types.py +++ b/test/dialect/mssql/test_types.py @@ -313,9 +313,7 @@ class TypeRoundTripTest( def teardown(self): metadata.drop_all() - @testing.fails_on_everything_except( - 'mssql+pyodbc', - 'this is some pyodbc-specific feature') + @testing.fails_on_everything_except('mssql+pyodbc') def test_decimal_notation(self): numeric_table = Table( 'numeric_table', metadata, diff --git a/test/dialect/postgresql/test_types.py b/test/dialect/postgresql/test_types.py index 00a2de2db..9d5cb4d91 100644 --- a/test/dialect/postgresql/test_types.py +++ b/test/dialect/postgresql/test_types.py @@ -2576,6 +2576,9 @@ class JSONRoundTripTest(fixtures.TablesTest): ) eq_(result.scalar(), 'r6') + @testing.fails_on( + "postgresql < 9.4", + "Improvement in Postgresql behavior?") def test_multi_index_query(self): engine = testing.db self._fixture_data(engine) @@ -2746,7 +2749,6 @@ class JSONBTest(JSONTest): class JSONBRoundTripTest(JSONRoundTripTest): - __only_on__ = ('postgresql >= 9.4',) __requires__ = ('postgresql_jsonb', ) test_type = JSONB -- cgit v1.2.1