summaryrefslogtreecommitdiff
path: root/test/orm/test_generative.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2010-02-22 22:10:28 +0000
committerMichael Trier <mtrier@gmail.com>2010-02-22 22:10:28 +0000
commitc6dd43b25245a4e6cd184995357e97a0a8a1dbe7 (patch)
treed877d25f3dc323a3cde798f0540735bf15a6f5ce /test/orm/test_generative.py
parent91bca6b4701272257c714bb18b2b14d1264b2ca3 (diff)
downloadsqlalchemy-c6dd43b25245a4e6cd184995357e97a0a8a1dbe7.tar.gz
Found another float / Decimal issue that needs to be changed to be consistent on Python2/3.
Diffstat (limited to 'test/orm/test_generative.py')
-rw-r--r--test/orm/test_generative.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/orm/test_generative.py b/test/orm/test_generative.py
index 7fc7ba6c9..b077bcf70 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