Issue #61 wontfix

Rounding issues in modeltests.aggregate

Johan Harjono
created an issue

{{{

!python

File "/home/johan/workspace/fiji/build/tests/modeltests/aggregation/models.py", line ?, in modeltests.aggregation.models.test.API_TESTS Failed example: Book.objects.all().annotate(num_authors=Count('authorsid')).filter(authorsnamecontains='Norvig', num_authorsgt=1).aggregate(Avg('rating')) Expected: {'ratingavg': 4.25} Got: {'ratingavg': 4.0}

File "/home/johan/workspace/fiji/build/tests/modeltests/aggregation/models.py", line ?, in modeltests.aggregation.models.test.API_TESTS Failed example: list(qs) == [(Decimal('29.69'), 2), (Decimal('23.09'), 1), (Decimal('30'), 1), (Decimal('75'), 1), (Decimal('82.8'), 1)] Expected: True Got: False }}}

Comments (2)

  1. Log in to comment