| 4 | | diff --git a/tests/queries/tests.py b/tests/queries/tests.py |
| 5 | | index 1bd72dd8b8..c6d9b05761 100644 |
| 6 | | --- a/tests/queries/tests.py |
| 7 | | +++ b/tests/queries/tests.py |
| 8 | | @@ -1312,6 +1312,10 @@ class Queries1Tests(TestCase): |
| | 6 | diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py |
| | 7 | index e15e7e41d9..cc92029135 100644 |
| | 8 | --- a/tests/aggregation_regress/tests.py |
| | 9 | +++ b/tests/aggregation_regress/tests.py |
| | 10 | @@ -554,6 +554,10 @@ class AggregationTests(TestCase): |
| | 11 | 325, |
| 20 | | |
| 21 | | results |
| 22 | | |
| 23 | | {{{ |
| 24 | | E |
| 25 | | ====================================================================== |
| 26 | | ERROR: test_count_on_annotation (queries.tests.Queries1Tests) |
| 27 | | ---------------------------------------------------------------------- |
| 28 | | Traceback (most recent call last): |
| 29 | | File "/Users/davids/projects/django/tests/queries/tests.py", line 1317, in test_count_on_annotation |
| 30 | | Tag.objects.annotate(has_pk=~Q(pk=None)).count() |
| 31 | | File "/Users/davids/projects/django/django/db/models/query.py", line 621, in count |
| 32 | | return self.query.get_count(using=self.db) |
| 33 | | File "/Users/davids/projects/django/django/db/models/sql/query.py", line 554, in get_count |
| 34 | | return obj.get_aggregation(using, ["__count"])["__count"] |
| 35 | | File "/Users/davids/projects/django/django/db/models/sql/query.py", line 503, in get_aggregation |
| 36 | | if expression.is_summary: |
| 37 | | AttributeError: 'WhereNode' object has no attribute 'is_summary' |
| 38 | | |
| 39 | | ---------------------------------------------------------------------- |
| 40 | | Ran 1 test in 0.014s |
| 41 | | |
| 42 | | FAILED (errors=1) |
| 43 | | Destroying test database for alias 'default'... |
| 44 | | }}} |