module documentation

Undocumented

Async Function async​_test​_context​_locality Undocumented
Async Function concurrent​_context1 Undocumented
Async Function concurrent​_context2 Undocumented
Function concurrent​_thread1 Undocumented
Function concurrent​_thread2 Undocumented
Function get​_module No summary
Function test​_context​_locality Undocumented
Function test​_default​_policy​_singleton Undocumented
Function test​_new​_policy Undocumented
Function test​_owner​_is​_base Undocumented
Function test​_policy​_propagation Undocumented
Function test​_set​_policy Undocumented
Function test​_switch​_owner Undocumented
Function test​_thread​_locality Undocumented
async def async_test_context_locality(get_module):

Undocumented

async def concurrent_context1(get_module, orig_policy_name, event):

Undocumented

async def concurrent_context2(get_module, orig_policy_name, event):

Undocumented

def concurrent_thread1(get_module, event):

Undocumented

def concurrent_thread2(get_module, event):

Undocumented

@pytest.fixture
def get_module(tmp_path):
Add a memory policy that returns a false pointer 64 bytes into the actual allocation, and fill the prefix with some text. Then check at each memory manipulation that the prefix exists, to make sure all alloc/realloc/ free/calloc go via the functions here.
def test_context_locality(get_module):

Undocumented

def test_default_policy_singleton(get_module):

Undocumented

@pytest.mark.slow
def test_new_policy(get_module):

Undocumented

def test_owner_is_base(get_module):

Undocumented

def test_policy_propagation(get_module):

Undocumented

def test_set_policy(get_module):

Undocumented

@pytest.mark.xfail((sys.implementation.name == 'pypy'), reason='bad interaction between getenv and os.environ inside pytest')
@pytest.mark.parametrize('policy', ['0', '1', None])
def test_switch_owner(get_module, policy):

Undocumented

def test_thread_locality(get_module):

Undocumented