From 67ee56be69687a828d3998b2f6e2caccb3fe9072 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 2 Oct 2017 11:50:05 -0400 Subject: [PATCH] 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 --- test/sql/test_functions.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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()""" -- 2.47.3