summaryrefslogtreecommitdiff
path: root/tests/regressiontests
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-27 00:44:44 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-27 00:44:44 +0000
commit014373b459e0925ad757a56d9b4f049bc4f776fc (patch)
treed622d7eac1da7d344384467197c01f8d65d9fb44 /tests/regressiontests
parentfc4c0f7b39ab62ec4da2aebf179f2ae06d49b312 (diff)
queryset-refactor: Fixed #6664. Calling list() no longer swallows field errors.
This is slightly backwards incompatible with previous behaviour if you were doing Tricky Stuff(tm) -- the exception type has changed if you try to create a bad queryset. git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
-rw-r--r--tests/regressiontests/null_queries/models.py2
-rw-r--r--tests/regressiontests/queries/models.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/null_queries/models.py b/tests/regressiontests/null_queries/models.py
index d6993b8be5..df04f14eba 100644
--- a/tests/regressiontests/null_queries/models.py
+++ b/tests/regressiontests/null_queries/models.py
@@ -37,7 +37,7 @@ Excluding the previous result returns everything.
>>> Choice.objects.filter(foo__exact=None)
Traceback (most recent call last):
...
-TypeError: Cannot resolve keyword 'foo' into field. Choices are: choice, id, poll
+FieldError: Cannot resolve keyword 'foo' into field. Choices are: choice, id, poll
# Can't use None on anything other than __exact
>>> Choice.objects.filter(id__gt=None)
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py
index 3908d51f66..c95026a54e 100644
--- a/tests/regressiontests/queries/models.py
+++ b/tests/regressiontests/queries/models.py
@@ -394,7 +394,7 @@ Bug #2076
>>> LoopX.objects.all()
Traceback (most recent call last):
...
-TypeError: Infinite loop caused by ordering.
+FieldError: Infinite loop caused by ordering.
# If the remote model does not have a default ordering, we order by its 'id'
# field.