[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Make TimestampTestCase work with sqlalchemy 0.5.



Signed-off-by: Torsten Werner <twerner@debian.org>
---
 tests/dbtest_timestamps.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/dbtest_timestamps.py b/tests/dbtest_timestamps.py
index ff19d7d..98642c4 100755
--- a/tests/dbtest_timestamps.py
+++ b/tests/dbtest_timestamps.py
@@ -19,7 +19,7 @@ class TimestampTestCase(DBDakTestCase):
         local_session = DBConn().session()
         query = local_session.query('now').from_statement('select now() as now')
         local_session.close()
-        return query.one().now
+        return query.first().now
 
     def sleep(self):
         time.sleep(0.001)
-- 
1.5.6.5


Reply to: