Skip to content

Commit bd6266f

Browse files
committed
fix tests for django1.7 support
1 parent f4b5e65 commit bd6266f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def test_invalidate_cache(get_cluster_info):
9191
backend.get('key1', 'val')
9292
except Exception:
9393
pass
94-
backend._local._client = None
94+
# invalidate cached client
95+
container = getattr(backend, '_local', backend)
96+
container._client = None
9597
try:
9698
backend.get('key1', 'val')
9799
except Exception:

0 commit comments

Comments
 (0)