Explorar o código

ContextMock should return self

Ask Solem %!s(int64=9) %!d(string=hai) anos
pai
achega
6c80ba7b48
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/tests/case.py

+ 1 - 1
celery/tests/case.py

@@ -149,7 +149,7 @@ class _ContextMock(Mock):
     in the class, not just the instance."""
 
     def __enter__(self):
-        pass
+        return self
 
     def __exit__(self, *exc_info):
         pass