From deb6a48ff8e79771d9001edd70c47f0d1cf1118b Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Sat, 15 Jan 2011 18:04:14 +0100 Subject: [PATCH] Make TimestampTestCase work with sqlalchemy 0.5. Signed-off-by: Torsten Werner --- tests/dbtest_timestamps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dbtest_timestamps.py b/tests/dbtest_timestamps.py index ff19d7d0..98642c41 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) -- 2.39.5