2022-11-04 08:58:36 +01:00
|
|
|
---
|
2023-07-11 07:55:34 +02:00
|
|
|
tests/hazmat/backends/test_openssl_memleak.py | 10 ++++------
|
|
|
|
1 file changed, 4 insertions(+), 6 deletions(-)
|
2022-11-04 08:58:36 +01:00
|
|
|
|
2023-07-11 07:55:34 +02:00
|
|
|
--- a/tests/hazmat/backends/test_openssl_memleak.py
|
|
|
|
+++ b/tests/hazmat/backends/test_openssl_memleak.py
|
|
|
|
@@ -203,12 +203,10 @@ def assert_no_memory_leaks(s, argv=[]):
|
2017-09-07 16:49:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
def skip_if_memtesting_not_supported():
|
|
|
|
- return pytest.mark.skipif(
|
2023-03-26 21:59:51 +02:00
|
|
|
- not Binding().lib.Cryptography_HAS_MEM_FUNCTIONS
|
|
|
|
- or platform.python_implementation() == "PyPy",
|
|
|
|
- reason="Requires OpenSSL memory functions (>=1.1.0) and not PyPy",
|
2020-07-28 19:32:18 +02:00
|
|
|
- )
|
2023-03-26 21:59:51 +02:00
|
|
|
-
|
2017-09-07 16:49:40 +02: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 19:32:18 +02:00
|
|
|
+ )
|
2023-07-11 07:55:34 +02:00
|
|
|
+
|
2017-09-07 16:49:40 +02:00
|
|
|
|
2020-07-28 19:32:18 +02:00
|
|
|
@pytest.mark.skip_fips(reason="FIPS self-test sets allow_customize = 0")
|
2023-03-26 21:59:51 +02:00
|
|
|
@skip_if_memtesting_not_supported()
|