mirror of
https://github.com/django/django.git
synced 2025-05-26 00:36:28 +00:00
Corrected tests.backends.sqlite.tests.Tests.test_aggregation()'s docstring.
This commit is contained in:
parent
9a0e5052ed
commit
3b8857b51a
@ -37,9 +37,7 @@ class Tests(TestCase):
|
|||||||
check_sqlite_version()
|
check_sqlite_version()
|
||||||
|
|
||||||
def test_aggregation(self):
|
def test_aggregation(self):
|
||||||
"""
|
"""Raise NotSupportedError when aggregating on date/time fields."""
|
||||||
Raise NotImplementedError when aggregating on date/time fields (#19360).
|
|
||||||
"""
|
|
||||||
for aggregate in (Sum, Avg, Variance, StdDev):
|
for aggregate in (Sum, Avg, Variance, StdDev):
|
||||||
with self.assertRaises(NotSupportedError):
|
with self.assertRaises(NotSupportedError):
|
||||||
Item.objects.all().aggregate(aggregate('time'))
|
Item.objects.all().aggregate(aggregate('time'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user