diff options
Diffstat (limited to 'tests/aggregation')
| -rw-r--r-- | tests/aggregation/tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index a336758f45..bd6ecf699c 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -884,7 +884,10 @@ class AggregateTestCase(TestCase): self.assertEqual(p2, {'avg_price': Approximate(Decimal('53.39'), places=2)}) def test_combine_different_types(self): - msg = 'Expression contains mixed types. You must set output_field.' + msg = ( + 'Expression contains mixed types: FloatField, IntegerField. ' + 'You must set output_field.' + ) qs = Book.objects.annotate(sums=Sum('rating') + Sum('pages') + Sum('price')) with self.assertRaisesMessage(FieldError, msg): qs.first() |
