From 8b4a654641761298db1f47a8203fe12604382d13 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 8 Apr 2022 14:38:21 +0100 Subject: python3-cryptography: backport fix for leaky test The leaking test case has been fixed upstream, so backport the patch. (From OE-Core rev: 4705b8a724fe288a20f1a080e2796ea90f46c9fb) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- .../python3-cryptography/fix-leak-metric.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch (limited to 'meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch') diff --git a/meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch b/meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch new file mode 100644 index 0000000000..904984f43d --- /dev/null +++ b/meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch @@ -0,0 +1,36 @@ +Trigger hashlib initialisation so that the test_create_certificate_with_extensions +test doesn't fail. + +Upstream-Status: Backport +Signed-off-by: Ross Burton + +From dc989d563ab6a078651160e5e6d4ee3df8cb08d7 Mon Sep 17 00:00:00 2001 +From: Alex Gaynor +Date: Thu, 7 Apr 2022 03:15:09 -0400 +Subject: [PATCH] Added Ubuntu Jammy to CI (#7047) + +* Added Ubuntu Jammy to CI + +* try thing +--- + .github/workflows/ci.yml | 1 + + docs/installation.rst | 2 +- + tests/hazmat/backends/test_openssl_memleak.py | 3 +++ + 3 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/tests/hazmat/backends/test_openssl_memleak.py b/tests/hazmat/backends/test_openssl_memleak.py +index 835c9256a6..2605566bd5 100644 +--- a/tests/hazmat/backends/test_openssl_memleak.py ++++ b/tests/hazmat/backends/test_openssl_memleak.py +@@ -82,8 +82,11 @@ def free(ptr, path, line): + assert result == 1 + + # Trigger a bunch of initialization stuff. ++ import hashlib + from cryptography.hazmat.backends.openssl.backend import backend + ++ hashlib.sha256() ++ + start_heap = set(heap) + + try: -- cgit v1.2.3-54-g00ecf