- Add no-pytest_benchmark.patch, which remove dependency on pytest-benchmark and coveralls (We don't need no benchmarking and coverage measurement; bsc#1213005). OBS-URL: https://build.opensuse.org/request/show/1098044 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=188
24 lines
848 B
Diff
24 lines
848 B
Diff
---
|
|
tests/hazmat/backends/test_openssl_memleak.py | 10 ++++------
|
|
1 file changed, 4 insertions(+), 6 deletions(-)
|
|
|
|
--- 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=[]):
|
|
|
|
|
|
def skip_if_memtesting_not_supported():
|
|
- return pytest.mark.skipif(
|
|
- not Binding().lib.Cryptography_HAS_MEM_FUNCTIONS
|
|
- or platform.python_implementation() == "PyPy",
|
|
- reason="Requires OpenSSL memory functions (>=1.1.0) and not PyPy",
|
|
- )
|
|
-
|
|
+ return pytest.mark.skip(
|
|
+ reason="Our FIPS openssl startup code invokes CRYPTO_malloc() which prevents later debugging via CRYPTO_set_mem_functions()"
|
|
+ )
|
|
+
|
|
|
|
@pytest.mark.skip_fips(reason="FIPS self-test sets allow_customize = 0")
|
|
@skip_if_memtesting_not_supported()
|