summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-03-14 13:56:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-16 08:48:08 +0000
commita5d252eea3e5a1196d1c72bfdeef4c61b898cedb (patch)
treed8191ebc19051aa8c8ed25a637fc3f4908a062aa /meta
parentac54a3e99e462279279a01bcf7424ffc988e6aba (diff)
downloadpoky-a5d252eea3e5a1196d1c72bfdeef4c61b898cedb.tar.gz
python3-cryptography: mark test_create_certificate_with_extensions as expected to fail
This test causes OpenSSL to leak some memory. Until this is resolved in OpenSSL, mark the test as expected-to-fail. (From OE-Core rev: b32917b113df6dce0200d35dd1b539279635d524) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3-cryptography/skip-leaky-test.patch19
-rw-r--r--meta/recipes-devtools/python/python3-cryptography_36.0.1.bb1
2 files changed, 20 insertions, 0 deletions
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 0000000000..64248d57bd
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-cryptography/skip-leaky-test.patch
@@ -0,0 +1,19 @@
1Mark as test as expected-failure, OpenSSL is leaking memory.
2
3xfail not skip so we can remove this when OpenSSL doesn't leak anymore.
4
5Upstream-Status: Inappropriate
6Signed-off-by: Ross Burton <ross.burton@arm.com>
7
8diff --git a/tests/hazmat/backends/test_openssl_memleak.py b/tests/hazmat/backends/test_openssl_memleak.py
9index 835c9256..639f6ba2 100644
10--- a/tests/hazmat/backends/test_openssl_memleak.py
11+++ b/tests/hazmat/backends/test_openssl_memleak.py
12@@ -466,6 +466,7 @@ class TestOpenSSLMemoryLeaks:
13 )
14 )
15
16+ @pytest.mark.xfail(reason="has memory leaks")
17 def test_create_certificate_with_extensions(self):
18 assert_no_memory_leaks(
19 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 11466ecece..69eeeb1e96 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 += " \
16 file://check-memfree.py \ 16 file://check-memfree.py \
17 file://0001-Cargo.toml-specify-pem-version.patch \ 17 file://0001-Cargo.toml-specify-pem-version.patch \
18 file://0002-Cargo.toml-edition-2018-2021.patch \ 18 file://0002-Cargo.toml-edition-2018-2021.patch \
19 file://skip-leaky-test.patch \
19" 20"
20 21
21inherit pypi python_setuptools3_rust 22inherit pypi python_setuptools3_rust