From 8ae02fde2b2434e80dea44c9f28461fe8cb585c9 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 10 Feb 2012 01:13:09 +0000 Subject: [PATCH] Added missing file forgotten in r17479. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17485 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/cache/closeable_cache.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/regressiontests/cache/closeable_cache.py diff --git a/tests/regressiontests/cache/closeable_cache.py b/tests/regressiontests/cache/closeable_cache.py new file mode 100644 index 0000000000..83073850b7 --- /dev/null +++ b/tests/regressiontests/cache/closeable_cache.py @@ -0,0 +1,11 @@ +from django.core.cache.backends.locmem import LocMemCache + + +class CloseHookMixin(object): + closed = False + + def close(self, **kwargs): + self.closed = True + +class CacheClass(CloseHookMixin, LocMemCache): + pass