MCPcopy 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
626def _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

objectMethod · 0.85
modulesMethod · 0.85

Calls 1

__enter__Method · 0.45

Tested by

no test coverage detected