From f328ebdede9e10779c1fb93d45f72dade7eda23f Mon Sep 17 00:00:00 2001 From: Renato Oliveira Date: Fri, 11 Sep 2015 10:14:35 -0500 Subject: [1.8.x] Fixed #25382 -- Removed obsolete references to DateQuerySet. Backport of e3720b990a33ae259da4b1f1f6069aa6bbc8c03d from master --- tests/queries/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/queries') 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.", -- cgit v1.3