Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

flake8 fixes

  • Loading branch information...
commit 83ab04c6d6a65c78cac32e5796908c6a542c85c7 1 parent 4e07d93
@alex alex authored
Showing with 6 additions and 4 deletions.
  1. +1 −0  django/core/cache/__init__.py
  2. +5 −4 tests/cache/tests.py
View
1  django/core/cache/__init__.py
@@ -146,6 +146,7 @@ def __ne__(self, other):
cache = DefaultCacheProxy()
+
def close_caches(**kwargs):
# Some caches -- python-memcached in particular -- need to do a cleanup at the
# end of a request cycle. If not implemented in a particular backend
View
9 tests/cache/tests.py
@@ -1147,10 +1147,11 @@ def test_custom_key_validation(self):
@override_settings(
CACHES={
- 'default': {
- 'BACKEND': 'cache.closeable_cache.CacheClass',
- }
- },)
+ 'default': {
+ 'BACKEND': 'cache.closeable_cache.CacheClass',
+ }
+ }
+)
class GetCacheTests(IgnorePendingDeprecationWarningsMixin, TestCase):
def test_simple(self):
Please sign in to comment.
Something went wrong with that request. Please try again.