From: zeeeeeb <5767468+zeeeeeb@users.noreply.github.com> Date: Thu, 10 Feb 2022 05:44:37 +0000 (-0800) Subject: fixing broken tests X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d59868f259ddee07bcf0da4658e85f09b35fb7d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fixing broken tests --- diff --git a/test/dialect/oracle/test_compiler.py b/test/dialect/oracle/test_compiler.py index 4cb6a8bb84..580f2cbe5d 100644 --- a/test/dialect/oracle/test_compiler.py +++ b/test/dialect/oracle/test_compiler.py @@ -1387,14 +1387,10 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): test sqlalchemy Double/DOUBLE to PostgreSQL DOUBLE PRECISION """ d1 = sqltypes.Double - d2 = sqltypes.DOUBLE self.assert_compile( cast(column("foo"), d1), "CAST(foo AS DOUBLE PRECISION)" ) - self.assert_compile( - cast(column("bar"), d2), "CAST(bar AS DOUBLE PRECISION)" - ) class SequenceTest(fixtures.TestBase, AssertsCompiledSQL): diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py index 400080e78d..006a5c1856 100644 --- a/test/dialect/postgresql/test_compiler.py +++ b/test/dialect/postgresql/test_compiler.py @@ -249,13 +249,11 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): test sqlalchemy Double/DOUBLE to PostgreSQL DOUBLE PRECISION """ d1 = sqltypes.Double - d2 = sqltypes.DOUBLE - stmt = select(cast(column("foo"), d1), cast(column("bar"), d2)) + stmt = select(cast(column("foo"), d1)) self.assert_compile( stmt, - "SELECT CAST(foo AS DOUBLE PRECISION) AS foo, " - "CAST(bar AS DOUBLE PRECISION) AS bar", + "SELECT CAST(foo AS DOUBLE PRECISION) AS foo" ) def test_cast_enum_schema_translate(self):