diff --git a/django/core/cache/backends/filebased.py b/django/core/cache/backends/filebased.py index 57b0f6fba8..26522af284 100644 --- a/django/core/cache/backends/filebased.py +++ b/django/core/cache/backends/filebased.py @@ -152,7 +152,6 @@ class FileBasedCache(BaseCache): return filelist - # For backwards compatibility class CacheClass(FileBasedCache): pass diff --git a/tests/cache/tests.py b/tests/cache/tests.py index e4ef951295..ea11f979c4 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -4,7 +4,6 @@ # Uses whatever cache backend is set in the test settings file. from __future__ import unicode_literals -import hashlib import os import pickle import random diff --git a/tests/prefetch_related/tests.py b/tests/prefetch_related/tests.py index 76704743e2..599eb14f96 100644 --- a/tests/prefetch_related/tests.py +++ b/tests/prefetch_related/tests.py @@ -492,6 +492,7 @@ class CustomPrefetchTests(TestCase): self.assertEqual(lst2[0].houses_lst[0].rooms_lst[1], self.room1_2) self.assertEqual(len(lst2[1].houses_lst), 0) + class DefaultManagerTests(TestCase): def setUp(self):