From: Gord Thompson Date: Tue, 31 Mar 2020 12:04:59 +0000 (-0600) Subject: Fix one more db.execute in mssql test X-Git-Tag: rel_1_4_0b1~429 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=442b30c3ca18350aa451d7232ba8f0f5f400fc46;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix one more db.execute in mssql test Change-Id: Ia34da0d3bbaaa3e98a5318191a38a5c3354061c9 --- diff --git a/test/dialect/mssql/test_types.py b/test/dialect/mssql/test_types.py index 9904408a3b..58faab9109 100644 --- a/test/dialect/mssql/test_types.py +++ b/test/dialect/mssql/test_types.py @@ -105,7 +105,7 @@ class MSDateTypeTest(fixtures.TestBase): "abc", ) - def test_extract(self): + def test_extract(self, connection): from sqlalchemy import extract fivedaysago = datetime.datetime.now() - datetime.timedelta(days=5) @@ -114,7 +114,7 @@ class MSDateTypeTest(fixtures.TestBase): ("month", fivedaysago.month), ("day", fivedaysago.day), ): - r = testing.db.execute( + r = connection.execute( select([extract(field, fivedaysago)]) ).scalar() eq_(r, exp)