From: Ross Burton <[email protected]> This test causes OpenSSL to leak some memory. Until this is resolved in OpenSSL, mark the test as expected-to-fail.
Signed-off-by: Ross Burton <[email protected]> --- .../skip-leaky-test.patch | 19 +++++++++++++++++++ .../python/python3-cryptography_36.0.1.bb | 1 + 2 files changed, 20 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-cryptography/skip-leaky-test.patch diff --git a/meta/recipes-devtools/python/python3-cryptography/skip-leaky-test.patch b/meta/recipes-devtools/python/python3-cryptography/skip-leaky-test.patch new file mode 100644 index 00000000000..64248d57bd9 --- /dev/null +++ b/meta/recipes-devtools/python/python3-cryptography/skip-leaky-test.patch @@ -0,0 +1,19 @@ +Mark as test as expected-failure, OpenSSL is leaking memory. + +xfail not skip so we can remove this when OpenSSL doesn't leak anymore. + +Upstream-Status: Inappropriate +Signed-off-by: Ross Burton <[email protected]> + +diff --git a/tests/hazmat/backends/test_openssl_memleak.py b/tests/hazmat/backends/test_openssl_memleak.py +index 835c9256..639f6ba2 100644 +--- a/tests/hazmat/backends/test_openssl_memleak.py ++++ b/tests/hazmat/backends/test_openssl_memleak.py +@@ -466,6 +466,7 @@ class TestOpenSSLMemoryLeaks: + ) + ) + ++ @pytest.mark.xfail(reason="has memory leaks") + def test_create_certificate_with_extensions(self): + assert_no_memory_leaks( + textwrap.dedent( diff --git a/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb b/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb index 11466ecece6..69eeeb1e968 100644 --- a/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb +++ b/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb @@ -16,6 +16,7 @@ SRC_URI += " \ file://check-memfree.py \ file://0001-Cargo.toml-specify-pem-version.patch \ file://0002-Cargo.toml-edition-2018-2021.patch \ + file://skip-leaky-test.patch \ " inherit pypi python_setuptools3_rust -- 2.32.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#163195): https://lists.openembedded.org/g/openembedded-core/message/163195 Mute This Topic: https://lists.openembedded.org/mt/89786280/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
