summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-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