MCPcopy
hub / github.com/pyca/cryptography / large_mmap

Function large_mmap

tests/hazmat/primitives/test_aead.py:41–44  ·  view source on GitHub ↗
(length: int = 2**32)

Source from the content-addressed store, hash-verified

39
40
41def large_mmap(length: int = 2**32):
42 # Silencing mypy prot argument warning on Windows, even though this
43 # function is only used in non-Windows-based tests.
44 return mmap.mmap(-1, length, prot=mmap.PROT_READ) # type: ignore[call-arg,attr-defined,unused-ignore]
45
46
47@pytest.mark.skipif(

Callers 7

test_data_too_largeMethod · 0.85
test_data_too_largeMethod · 0.85
test_data_too_largeMethod · 0.85
test_data_too_largeMethod · 0.85
test_data_too_largeMethod · 0.85
test_data_too_largeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected