Skip to content

Commit 1064d49

Browse files
committed
Fix for tests when using celery 3.1.10
1 parent cdef76b commit 1064d49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

djcelery/tests/test_backends/test_database.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import absolute_import, unicode_literals
22

3+
import celery
4+
35
from datetime import timedelta
46

57
from celery import current_app
@@ -65,6 +67,9 @@ def test_forget(self):
6567
x = AsyncResult(tid)
6668
self.assertEqual(x.result.get('foo'), 'bar')
6769
x.forget()
70+
if celery.VERSION[0:3] == (3, 1, 10):
71+
# bug in 3.1.10 means result did not clear cache after forget.
72+
x._cache = None
6873
self.assertIsNone(x.result)
6974

7075
def test_group_store(self):

0 commit comments

Comments
 (0)