From: Philip Jenvey Date: Tue, 26 Jan 2010 23:23:13 +0000 (+0000) Subject: missing import, forcefully compile the expression to str X-Git-Tag: rel_0_6beta1~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff09d5709df8c022d264a227d7505b6eb884e6cc;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git missing import, forcefully compile the expression to str --- diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py index c29391dc46..ef49d5e5fa 100644 --- a/test/engine/test_execute.py +++ b/test/engine/test_execute.py @@ -1,7 +1,7 @@ from sqlalchemy.test.testing import eq_ import re from sqlalchemy.interfaces import ConnectionProxy -from sqlalchemy import MetaData, Integer, String, INT, VARCHAR, func, bindparam +from sqlalchemy import MetaData, Integer, String, INT, VARCHAR, func, bindparam, select from sqlalchemy.test.schema import Table from sqlalchemy.test.schema import Column import sqlalchemy as tsa diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index 8af646a3b1..53a7e40e9b 100644 --- a/test/engine/test_pool.py +++ b/test/engine/test_pool.py @@ -76,7 +76,7 @@ class PoolTest(PoolTestBase): def test_cursor_iterable(self): conn = testing.db.raw_connection() cursor = conn.cursor() - cursor.execute(select([1]).compile(testing.db)) + cursor.execute(str(select([1]).compile(testing.db))) expected = [(1,)] for row in cursor: eq_(row, expected.pop(0))