From: Michael Trier Date: Mon, 22 Feb 2010 22:10:28 +0000 (+0000) Subject: Found another float / Decimal issue that needs to be changed to be consistent on... X-Git-Tag: rel_0_6beta2~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6dd43b25245a4e6cd184995357e97a0a8a1dbe7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Found another float / Decimal issue that needs to be changed to be consistent on Python2/3. --- diff --git a/test/orm/test_generative.py b/test/orm/test_generative.py index 7fc7ba6c91..b077bcf706 100644 --- a/test/orm/test_generative.py +++ b/test/orm/test_generative.py @@ -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