summaryrefslogtreecommitdiff
path: root/tests/modeltests/get_object_or_404/tests.py
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2012-10-24 00:04:37 +0300
committerAnssi Kääriäinen <akaariai@gmail.com>2013-01-06 19:18:28 +0200
commita2396a4c8f2ccd7f91adee6d8c2e9c31f13f0e3f (patch)
treef1f67939a21dbf2ac08db770b9b6776754d05ad9 /tests/modeltests/get_object_or_404/tests.py
parenta843539af2f557e9bdc71b9b5ef66eabe0e39e3c (diff)
Fixed #19173 -- Made EmptyQuerySet a marker class only
The guarantee that no queries will be made when accessing results is done by new EmptyWhere class which is used for query.where and having. Thanks to Simon Charette for reviewing and valuable suggestions.
Diffstat (limited to 'tests/modeltests/get_object_or_404/tests.py')
-rw-r--r--tests/modeltests/get_object_or_404/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/get_object_or_404/tests.py b/tests/modeltests/get_object_or_404/tests.py
index 3b234c6cd3..38ebeb4f8c 100644
--- a/tests/modeltests/get_object_or_404/tests.py
+++ b/tests/modeltests/get_object_or_404/tests.py
@@ -53,7 +53,7 @@ class GetObjectOr404Tests(TestCase):
get_object_or_404, Author.objects.all()
)
- # Using an EmptyQuerySet raises a Http404 error.
+ # Using an empty QuerySet raises a Http404 error.
self.assertRaises(Http404,
get_object_or_404, Article.objects.none(), title__contains="Run"
)