MCPcopy Create free account
hub / github.com/numpy/numpy / concurrent_context1

Function concurrent_context1

numpy/core/tests/test_mem_policy.py:292–299  ·  view source on GitHub ↗
(get_module, orig_policy_name, event)

Source from the content-addressed store, hash-verified

290
291
292async def concurrent_context1(get_module, orig_policy_name, event):
293 if orig_policy_name == 'default_allocator':
294 get_module.set_secret_data_policy()
295 assert np.core.multiarray.get_handler_name() == 'secret_data_allocator'
296 else:
297 get_module.set_old_policy(None)
298 assert np.core.multiarray.get_handler_name() == 'default_allocator'
299 event.set()
300
301
302async def concurrent_context2(get_module, orig_policy_name, event):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected