]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
missing import, forcefully compile the expression to str
authorPhilip Jenvey <pjenvey@underboss.org>
Tue, 26 Jan 2010 23:23:13 +0000 (23:23 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Tue, 26 Jan 2010 23:23:13 +0000 (23:23 +0000)
test/engine/test_execute.py
test/engine/test_pool.py

index c29391dc46bdbbe39b71dba59798fe17548bdf81..ef49d5e5fa255215004625937c1a282aff814956 100644 (file)
@@ -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
index 8af646a3b1fcb2418b4b189188242fb4ac14e731..53a7e40e9b192889a30978d3d634becb81288288 100644 (file)
@@ -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))