summaryrefslogtreecommitdiff
path: root/tests/regressiontests/mongodb/tests.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-06-22 18:09:08 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-06-22 18:09:08 +0000
commitd6993c7dbb4ffef939e9061a701be2e442971d3b (patch)
treef6977576979d24e98860840242358e66434aa781 /tests/regressiontests/mongodb/tests.py
parent33523c9f95d47dec1a06ef2515af269e91be19b5 (diff)
[soc2010/query-refactor] Fixed Querysets in MongoDB with a limit of 0.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/mongodb/tests.py')
-rw-r--r--tests/regressiontests/mongodb/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/regressiontests/mongodb/tests.py b/tests/regressiontests/mongodb/tests.py
index 5c58f81171..e977ebeb42 100644
--- a/tests/regressiontests/mongodb/tests.py
+++ b/tests/regressiontests/mongodb/tests.py
@@ -95,8 +95,7 @@ class MongoTestCase(TestCase):
]
for i in xrange(5):
- # TODO: should be i, but Mongo falls over with limit(0)
- for j in xrange(i+1, 5):
+ for j in xrange(i, 5):
self.assertQuerysetEqual(
Artist.objects.all()[i:j],
artists[i:j],