]> err.no Git - dak/commitdiff
Make TimestampTestCase work with sqlalchemy 0.5.
authorTorsten Werner <twerner@debian.org>
Sat, 15 Jan 2011 17:04:14 +0000 (18:04 +0100)
committerTorsten Werner <twerner@debian.org>
Sat, 15 Jan 2011 17:04:14 +0000 (18:04 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_timestamps.py

index ff19d7d0ad18dd7d47be6d8887e25a5aa2c40d9e..98642c419624b3f25a923d0ed85c2c40a2db2775 100755 (executable)
@@ -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)