MCPcopy
hub / github.com/celery/celery / _wrap_context

Function _wrap_context

t/unit/conftest.py:605–611  ·  view source on GitHub ↗
(context, request)

Source from the content-addressed store, hash-verified

603
604
605def _wrap_context(context, request):
606 ret = context.__enter__()
607
608 def fin():
609 context.__exit__(*sys.exc_info())
610 request.addfinalizer(fin)
611 return ret
612
613
614@pytest.fixture()

Callers 2

objectMethod · 0.85
modulesMethod · 0.85

Calls 1

__enter__Method · 0.45

Tested by

no test coverage detected