Explorar el Código

ContextMock should return self

Ask Solem hace 9 años
padre
commit
6c80ba7b48
Se han modificado 1 ficheros con 1 adiciones y 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