django32: use public API to clear caches (#67760)
This commit is contained in:
parent
b9e4dab140
commit
9bc96520ac
|
@ -54,7 +54,8 @@ def test_thread(tenants, settings, client):
|
|||
|
||||
def test_cache(tenants, client):
|
||||
# Clear caches
|
||||
caches._caches.caches = {}
|
||||
for c in caches.all():
|
||||
c.clear()
|
||||
|
||||
cache.set('coin', 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue