Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celery/celery
/ _wrap_context
Function
_wrap_context
t/unit/conftest.py:626–632 ·
view source on GitHub ↗
(context, request)
Source
from the content-addressed store, hash-verified
624
625
626
def
_wrap_context(context, request):
627
ret = context.__enter__()
628
629
def
fin():
630
context.__exit__(*sys.exc_info())
631
request.addfinalizer(fin)
632
return
ret
633
634
635
@pytest.fixture()
Callers
2
object
Method · 0.85
modules
Method · 0.85
Calls
1
__enter__
Method · 0.45
Tested by
no test coverage detected