]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Found another float / Decimal issue that needs to be changed to be consistent on...
authorMichael Trier <mtrier@gmail.com>
Mon, 22 Feb 2010 22:10:28 +0000 (22:10 +0000)
committerMichael Trier <mtrier@gmail.com>
Mon, 22 Feb 2010 22:10:28 +0000 (22:10 +0000)
test/orm/test_generative.py

index 7fc7ba6c91fa6bd602de5452b08e7d9c88fe729f..b077bcf7060022a78fdfa2f9bc7c9220313260dc 100644 (file)
@@ -93,7 +93,7 @@ class GenerativeQueryTest(_base.MappedTest):
     def test_aggregate_2(self):
         query = create_session().query(func.avg(foo.c.bar))
         avg = query.filter(foo.c.bar < 30).one()[0]
-        eq_(round(avg, 1), 14.5)
+        eq_(float(round(avg, 1)), 14.5)
 
     @testing.fails_on('mssql', 'AVG produces an average as the original column type on mssql.')
     @testing.resolve_artifact_names