소스 검색

ContextMock should return self

Ask Solem 9 년 전
부모
커밋
6c80ba7b48
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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