From: Mike Bayer Date: Mon, 2 Oct 2017 15:50:05 +0000 (-0400) Subject: Support pg10 X-Git-Tag: rel_1_2_0~67^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67ee56be69687a828d3998b2f6e2caccb3fe9072;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Support pg10 One test appears to use some awkward calling style with the current_date function that isn't working in pg10 anymore, this looks like an extremely old test that can be removed Change-Id: I5f8aee0f5ed423461be5a9060c812eb0acdc7df5 --- diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py index a7dfd2bebe..d244e9671b 100644 --- a/test/sql/test_functions.py +++ b/test/sql/test_functions.py @@ -630,6 +630,7 @@ class ReturnTypeTest(fixtures.TestBase): class ExecuteTest(fixtures.TestBase): + __backend__ = True @engines.close_first def tearDown(self): @@ -744,14 +745,7 @@ class ExecuteTest(fixtures.TestBase): w = select(['*'], from_obj=[func.current_date(bind=testing.db)]).\ scalar() - # construct a column-based FROM object out of a function, - # like in [ticket:172] - s = select([sql.column('date', type_=DateTime)], - from_obj=[func.current_date(bind=testing.db)]) - q = s.execute().first()[s.c.date] - r = s.alias('datequery').select().scalar() - - assert x == y == z == w == q == r + assert x == y == z == w def test_extract_bind(self): """Basic common denominator execution tests for extract()"""