From: Torsten Werner Date: Sat, 15 Jan 2011 17:04:14 +0000 (+0100) Subject: Make TimestampTestCase work with sqlalchemy 0.5. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb6a48ff8e79771d9001edd70c47f0d1cf1118b;p=dak Make TimestampTestCase work with sqlalchemy 0.5. Signed-off-by: Torsten Werner --- 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)