summaryrefslogtreecommitdiff
path: root/tests/queries
diff options
context:
space:
mode:
Diffstat (limited to 'tests/queries')
-rw-r--r--tests/queries/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 84871e8dfe..deb195fe9c 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -741,7 +741,7 @@ class Queries1Tests(BaseQuerysetTest):
3
)
- # Pickling of DateQuerySets used to fail
+ # Pickling of QuerySets using datetimes() should work.
qs = Item.objects.datetimes('created', 'month')
pickle.loads(pickle.dumps(qs))
@@ -1303,8 +1303,8 @@ class Queries3Tests(BaseQuerysetTest):
self.assertQuerysetEqual(Valid.objects.all(), [])
def test_ticket8683(self):
- # Raise proper error when a DateQuerySet gets passed a wrong type of
- # field
+ # An error should be raised when QuerySet.datetimes() is passed the
+ # wrong type of field.
self.assertRaisesMessage(
AssertionError,
"'name' isn't a DateTimeField.",