MCPcopy
hub / github.com/quantopian/zipline / enter_instance_context

Method enter_instance_context

zipline/testing/fixtures.py:235–239  ·  view source on GitHub ↗

Enter a context manager that should be exited during tearDown.

(self, context_manager)

Source from the content-addressed store, hash-verified

233
234 @final
235 def enter_instance_context(self, context_manager):
236 """
237 Enter a context manager that should be exited during tearDown.
238 """
239 return self._instance_teardown_stack.enter_context(context_manager)
240
241 @final
242 def add_instance_callback(self, callback):

Callers 8

writerMethod · 0.80
test_bundleMethod · 0.80

Calls

no outgoing calls

Tested by 6

writerMethod · 0.64
test_bundleMethod · 0.64