2022-11-04 07:58:36 +00:00
|
|
|
---
|
|
|
|
tests/hazmat/backends/test_openssl_memleak.py | 7 +++----
|
|
|
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
--- a/tests/hazmat/backends/test_openssl_memleak.py
|
|
|
|
+++ b/tests/hazmat/backends/test_openssl_memleak.py
|
|
|
|
@@ -174,10 +174,9 @@ def assert_no_memory_leaks(s, argv=[]):
|
2017-09-07 14:49:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
def skip_if_memtesting_not_supported():
|
|
|
|
- return pytest.mark.skipif(
|
|
|
|
- not Binding().lib.Cryptography_HAS_MEM_FUNCTIONS,
|
2020-07-28 17:32:18 +00:00
|
|
|
- reason="Requires OpenSSL memory functions (>=1.1.0)",
|
|
|
|
- )
|
2017-09-07 14:49:40 +00:00
|
|
|
+ return pytest.mark.skip(
|
|
|
|
+ reason="Our FIPS openssl startup code invokes CRYPTO_malloc() which prevents later debugging via CRYPTO_set_mem_functions()"
|
2020-07-28 17:32:18 +00:00
|
|
|
+ )
|
2017-09-07 14:49:40 +00:00
|
|
|
|
|
|
|
|
2020-07-28 17:32:18 +00:00
|
|
|
@pytest.mark.skip_fips(reason="FIPS self-test sets allow_customize = 0")
|