MCPcopy Create free account
hub / github.com/pyca/cryptography / backend

Function backend

tests/conftest.py:40–49  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

38
39@pytest.fixture()
40def backend(request):
41 check_backend_support(openssl_backend, request)
42
43 # Ensure the error stack is clear before the test
44 errors = openssl_backend._consume_errors()
45 assert not errors
46 yield openssl_backend
47 # Ensure the error stack is clear after the test
48 errors = openssl_backend._consume_errors()
49 assert not errors
50
51
52@pytest.fixture()

Callers

nothing calls this directly

Calls 2

check_backend_supportFunction · 0.85
_consume_errorsMethod · 0.80

Tested by

no test coverage detected